void-packages/srcpkgs/volk/template
2021-10-09 08:00:33 -04:00

37 lines
1.1 KiB
Bash

# Template file for 'volk'
pkgname=volk
version=2.5.0
revision=1
_cpu_features_gitrev="a8397ba4591237c17d18e4acc091f5f3ebe7391e"
build_style=cmake
hostmakedepends="pkg-config python3-cheetah3 git python3-Mako python3-six"
makedepends="boost-devel python3-cheetah3 python3-devel python3-Mako python3-six"
short_desc="Vector-Optimized Library of Kernels"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://libvolk.org/"
distfiles="https://github.com/gnuradio/volk/archive/v${version}.tar.gz
https://github.com/google/cpu_features/archive/${_cpu_features_gitrev}.tar.gz"
checksum="468bebdb8c2ae9b82837ad08abd146dd9a9a48d3de7bea2d0095e4b1557b5299
b47031a2a9ab04cb6514285103e51ba92c8f0bf28470cce911ac0c9af781c307"
case "$XBPS_TARGET_MACHINE" in
armv6l*)
configure_args="-Dhave_mfpu_neon=0";;
esac
post_extract() {
rm -rf cpu_features
mv ../cpu_features-${_cpu_features_gitrev} cpu_features
}
volk-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove /usr/include
vmove /usr/lib/pkgconfig
vmove /usr/lib/cmake
vmove "/usr/lib/*.so"
}
}