Date: Thursday, May 31, 2018 @ 02:00:08 Author: foutrelis Revision: 333802
archrelease: copy trunk to community-staging-x86_64 Added: libvolk/repos/community-staging-x86_64/ libvolk/repos/community-staging-x86_64/PKGBUILD (from rev 333801, libvolk/trunk/PKGBUILD) ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Copied: libvolk/repos/community-staging-x86_64/PKGBUILD (from rev 333801, libvolk/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-05-31 02:00:08 UTC (rev 333802) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Kyle Keen <keen...@gmail.com> + +pkgname=libvolk +pkgver=1.3 +pkgrel=8 +pkgdesc="The Vector-Optimized Library of Kernels from Gnuradio" +arch=('x86_64') +url="http://libvolk.org/" +license=('GPL3') +depends=('gcc-libs' 'boost-libs' 'orc' 'python2') +makedepends=('boost' 'cmake' 'python2-cheetah') +source=("http://libvolk.org/releases/volk-$pkgver.tar.gz"{,.asc}) +md5sums=('d04edc0779431c8660a8a592792a3680' + 'SKIP') +validpgpkeys=('09E749D885FA881A7E84E823385323EE6402091D') + +# doxygen for docs + +prepare() { + cd "$srcdir/volk-$pkgver" + sed -i -e "s|#![ ]*/usr/bin/env python$|&2|" $(find ./ -name '*.py') +} + +build() { + export PYTHON=python2 + cd "$srcdir/volk-$pkgver" + + mkdir -p build + cd build + cmake \ + -DPYTHON_EXECUTABLE=$(which python2) \ + -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../ + make +} + +check() { + # boost 1.64.0 and 1.65 is weird + # tests fail in makepkg (w/ and w/o chroot) + # but works okay in local shell? + # everything else checks out okay too + return + cd "$srcdir/volk-$pkgver/build" + export PYTHON=python2 + if [[ "$CARCH" == "x86_64" ]]; then + make test + fi +} + +package() { + cd "$srcdir/volk-$pkgver/build" + make DESTDIR="$pkgdir" install +}