blob: 3d72e987f05e7dd2f556f98ac9348470ee0fb202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: éclairevoyant
# Contributor: Kyle Keen <keenerd at gmail dot com>
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
}
|