mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/libvolk to 3.0.0-2
This commit is contained in:
parent
ea7449f3a0
commit
3142eb5fb4
1 changed files with 22 additions and 31 deletions
|
@ -1,63 +1,54 @@
|
|||
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
||||
# Maintainer:
|
||||
# Contributor: Kyle Keen <keenerd@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - build v7 without neon to fix FTBFS
|
||||
|
||||
_name=volk
|
||||
pkgname=libvolk
|
||||
epoch=2
|
||||
pkgver=2.5.2
|
||||
pkgver=3.0.0
|
||||
_cpuver=0.6.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="The Vector-Optimized Library of Kernels from Gnuradio"
|
||||
arch=('x86_64')
|
||||
url="http://libvolk.org/"
|
||||
url="https://www.libvolk.org/"
|
||||
license=('GPL3')
|
||||
depends=('gcc-libs' 'boost-libs' 'orc' 'python' 'python-six')
|
||||
makedepends=('boost' 'cmake' 'python-mako')
|
||||
#source=("http://libvolk.org/releases/volk-$pkgver.tar.gz"{,.asc})
|
||||
#source=("http://libvolk.org/releases/volk-$pkgver.tar.gz")
|
||||
#source=("https://github.com/gnuradio/volk/releases/download/v$pkgver/volk-v$pkgver.tar.gz"{,.asc})
|
||||
source=("volk-$pkgver.tgz::https://github.com/gnuradio/volk/archive/v$pkgver.tar.gz"
|
||||
"cpufeatures-$_cpuver.tgz::https://github.com/google/cpu_features/archive/v$_cpuver.tar.gz")
|
||||
# new upstream maintainer, no sig for 2.1.0 or real release?
|
||||
md5sums=('c2ad8ba1d7eaf24f372a259acf04b3a2'
|
||||
'72a153f809bfab2253978959da0915ef')
|
||||
sha256sums=('617c25a5a240e41e50d695851925541b19e011d516c3e0c288a5aeefb3ceb7fd'
|
||||
'95a1cf6f24948031df114798a97eea2a71143bd38a4d07d9a758dda3924c1932')
|
||||
validpgpkeys=('09E749D885FA881A7E84E823385323EE6402091D'
|
||||
'D74F9F146E7F755783583158B343B2BA293E5174')
|
||||
|
||||
# doxygen for docs
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/volk-$pkgver"
|
||||
cd $_name-$pkgver
|
||||
rmdir cpu_features
|
||||
ln -sf "$srcdir/cpu_features-$_cpuver" cpu_features
|
||||
}
|
||||
|
||||
build() {
|
||||
export PYTHON=python3
|
||||
cd "$srcdir/volk-$pkgver"
|
||||
local cmake_options=(
|
||||
-B build
|
||||
-D PYTHON_EXECUTABLE=/usr/bin/python
|
||||
-D CMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects"
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-W no-dev
|
||||
-S $_name-$pkgver
|
||||
)
|
||||
|
||||
[[ $CARCH == "armv7h" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/neon/vfpv3/'` && CXXFLAGS="$CFLAGS"
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DPYTHON_EXECUTABLE=$(which python3) \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../
|
||||
make
|
||||
export PYTHON_EXECUTABLE=/usr/bin/python
|
||||
cmake "${cmake_options[@]}"
|
||||
cmake --build build --verbose
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/volk-$pkgver/build"
|
||||
export PYTHON=python3
|
||||
return
|
||||
if [[ "$CARCH" == "x86_64" ]]; then
|
||||
make test
|
||||
fi
|
||||
ctest --test-dir build --output-on-failure -E 'check_lgpl'
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/volk-$pkgver/build"
|
||||
make DESTDIR="$pkgdir" install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue