mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libvolk to 3.1.2-3
This commit is contained in:
parent
53b0d153b2
commit
9e65edad42
3 changed files with 51 additions and 39 deletions
|
@ -1,21 +1,22 @@
|
||||||
pkgbase = libvolk
|
pkgbase = libvolk
|
||||||
pkgdesc = The Vector-Optimized Library of Kernels from Gnuradio
|
pkgdesc = The Vector-Optimized Library of Kernels from Gnuradio
|
||||||
pkgver = 3.1.2
|
pkgver = 3.1.2
|
||||||
pkgrel = 2
|
pkgrel = 3
|
||||||
epoch = 2
|
epoch = 2
|
||||||
url = https://www.libvolk.org/
|
url = https://www.libvolk.org/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL3
|
license = LGPL-3.0-or-later
|
||||||
makedepends = cmake
|
makedepends = cmake
|
||||||
|
makedepends = git
|
||||||
makedepends = python-mako
|
makedepends = python-mako
|
||||||
depends = gcc-libs
|
depends = gcc-libs
|
||||||
|
depends = glibc
|
||||||
depends = orc
|
depends = orc
|
||||||
depends = python
|
depends = python
|
||||||
source = volk-3.1.2.tgz::https://github.com/gnuradio/volk/archive/v3.1.2.tar.gz
|
provides = libvolk.so
|
||||||
source = cpufeatures-0.9.0.tgz::https://github.com/google/cpu_features/archive/v0.9.0.tar.gz
|
source = git+https://github.com/gnuradio/volk.git#tag=v3.1.2
|
||||||
validpgpkeys = 09E749D885FA881A7E84E823385323EE6402091D
|
source = git+https://github.com/google/cpu_features.git
|
||||||
validpgpkeys = D74F9F146E7F755783583158B343B2BA293E5174
|
sha256sums = 9b3b30f8428ae7813e1d0d22896b717b8dd802027869065c42d552157652e288
|
||||||
sha256sums = 90082bf68d76d00aa6c35f8bff0e93891b4204d817e1a3ba829486b445f715dc
|
sha256sums = SKIP
|
||||||
sha256sums = bdb3484de8297c49b59955c3b22dba834401bc2df984ef5cfc17acbe69c5018e
|
|
||||||
|
|
||||||
pkgname = libvolk
|
pkgname = libvolk
|
||||||
|
|
4
extra/libvolk/.nvchecker.toml
Normal file
4
extra/libvolk/.nvchecker.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[libvolk]
|
||||||
|
source = "git"
|
||||||
|
git = "https://github.com/gnuradio/volk.git"
|
||||||
|
prefix = "v"
|
|
@ -1,54 +1,61 @@
|
||||||
# Maintainer:
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
|
||||||
# Contributor: Kyle Keen <keenerd@gmail.com>
|
# Contributor: Kyle Keen <keenerd@gmail.com>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - build v7 without neon to fix FTBFS
|
# - build v7 without neon to fix FTBFS
|
||||||
|
|
||||||
_name=volk
|
|
||||||
pkgname=libvolk
|
pkgname=libvolk
|
||||||
epoch=2
|
_pkgname=volk
|
||||||
pkgver=3.1.2
|
pkgver=3.1.2
|
||||||
_cpuver=0.9.0
|
pkgrel=3
|
||||||
pkgrel=2
|
epoch=2
|
||||||
pkgdesc="The Vector-Optimized Library of Kernels from Gnuradio"
|
pkgdesc="The Vector-Optimized Library of Kernels from Gnuradio"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://www.libvolk.org/"
|
url="https://www.libvolk.org/"
|
||||||
license=('GPL3')
|
license=(LGPL-3.0-or-later)
|
||||||
depends=('gcc-libs' 'orc' 'python')
|
depends=(
|
||||||
makedepends=('cmake' 'python-mako')
|
gcc-libs
|
||||||
source=("volk-$pkgver.tgz::https://github.com/gnuradio/volk/archive/v$pkgver.tar.gz"
|
glibc
|
||||||
"cpufeatures-$_cpuver.tgz::https://github.com/google/cpu_features/archive/v$_cpuver.tar.gz")
|
orc
|
||||||
sha256sums=('90082bf68d76d00aa6c35f8bff0e93891b4204d817e1a3ba829486b445f715dc'
|
python
|
||||||
'bdb3484de8297c49b59955c3b22dba834401bc2df984ef5cfc17acbe69c5018e')
|
)
|
||||||
validpgpkeys=('09E749D885FA881A7E84E823385323EE6402091D'
|
makedepends=(
|
||||||
'D74F9F146E7F755783583158B343B2BA293E5174')
|
cmake
|
||||||
|
git
|
||||||
|
python-mako
|
||||||
|
)
|
||||||
|
provides=(libvolk.so)
|
||||||
|
source=(
|
||||||
|
"git+https://github.com/gnuradio/volk.git#tag=v$pkgver"
|
||||||
|
"git+https://github.com/google/cpu_features.git"
|
||||||
|
)
|
||||||
|
sha256sums=('9b3b30f8428ae7813e1d0d22896b717b8dd802027869065c42d552157652e288'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $_name-$pkgver
|
cd $_pkgname
|
||||||
rmdir cpu_features
|
git submodule init
|
||||||
ln -sf "$srcdir/cpu_features-$_cpuver" cpu_features
|
git config submodule.cpu_features.url "$srcdir/cpu_features"
|
||||||
|
git -c protocol.file.allow=always submodule update
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local cmake_options=(
|
cd $_pkgname
|
||||||
-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"
|
[[ $CARCH == "armv7h" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/neon/vfpv3/'` && CXXFLAGS="$CFLAGS"
|
||||||
export PYTHON_EXECUTABLE=/usr/bin/python
|
cmake -S . -B build \
|
||||||
cmake "${cmake_options[@]}"
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
cmake --build build --verbose
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
|
-Wno-dev
|
||||||
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
ctest --test-dir build --output-on-failure -E 'check_lgpl'
|
cd $_pkgname
|
||||||
|
ctest --test-dir build --output-on-failure
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
cd $_pkgname
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
rm -vr "$pkgdir/usr/include/volk/asm"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue