# Maintainer: éclairevoyant # Contributor: Kyle Keen pkgname=libvolk-git pkgver=3.0.0.r18.4ed9334 pkgrel=1 pkgdesc="The Vector-Optimized Library of Kernels from Gnuradio" arch=(i686 x86_64) url="https://libvolk.org/" license=(GPL3) depends=(boost-libs gcc-libs orc python-six) makedepends=(boost cmake git python-mako) provides=(libcpufeatures "libvolk=${pkgver%%.r*}") conflicts=(libcpufeatures libvolk) source=("$pkgname::git+https://github.com/gnuradio/volk.git" "git+https://github.com/google/cpu_features.git") b2sums=('SKIP' 'SKIP') prepare() { cd $pkgname git submodule init git config submodule.cpu_features.url "$srcdir/cpu_features" git -c protocol.file.allow=always submodule update } pkgver() { git -C $pkgname describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g' } build() { cmake -B build -S $pkgname \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DCMAKE_INSTALL_PREFIX=/usr \ -Wno-dev make -C build } check() { export PYTHON=python3 if [[ "$CARCH" == "x86_64" ]]; then make -C build test fi } package() { make -C build DESTDIR="$pkgdir" install }