void-packages/srcpkgs/volk/template

40 lines
1.2 KiB
Bash

# Template file for 'volk'
pkgname=volk
version=2.5.2
revision=2
_cpu_features_gitrev="188d0d3c383689cdb6bb70dc6da2469faec84f61"
create_wrksrc=yes
build_style=cmake
hostmakedepends="pkg-config python3-cheetah3 git python3-Mako python3-six"
makedepends="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="fb447b8053f574a72697a26f08d51fb70d3b54b4e90e72b705138f8bc7ae6722
ef383c81e84e7ce56eeb9207ded6937f0aefd6747c319d8d3265e6d9be164db1"
case "$XBPS_TARGET_MACHINE" in
armv6l*)
configure_args="-Dhave_mfpu_neon=0";;
esac
post_extract() {
mv volk-$version/* .
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"
}
}