void-packages/srcpkgs/volk/template
2022-02-24 10:15:31 -06:00

37 lines
1.1 KiB
Bash

# Template file for 'volk'
pkgname=volk
version=2.5.1
revision=1
_cpu_features_gitrev="69d39934e83be9a0133d2850f15f5debd5eba06f"
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="a935d284e6ea33fb6885a504e963bc4b92c170529a4268adf39a34c86e067e8d
eec63919535abcf029f6fce1bca1192e67a5f5701d067d24094a54378c7f9563"
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"
}
}