void-packages/srcpkgs/uhd/template

46 lines
1.2 KiB
Bash

# Template file for 'uhd'
pkgname=uhd
version=3.14.1.1
revision=1
wrksrc="${pkgname}-${version}"
build_wrksrc=host
build_style=cmake
hostmakedepends="doxygen pkg-config python-Mako python-numpy python-requests"
makedepends="libusb-devel boost-devel"
short_desc="Ettus USRP Hardware driver library"
maintainer="Remi Pommarel <repk@triplefau.lt>"
license="GPL-3.0-or-later"
homepage="https://files.ettus.com/"
changelog="https://raw.githubusercontent.com/EttusResearch/uhd/master/CHANGELOG"
distfiles="https://github.com/EttusResearch/uhd/archive/v${version}.tar.gz"
checksum=8cbcb22d12374ceb2859689b1d68d9a5fa6bd5bd82407f66952863d5547d27d0
case "${XBPS_TARGET_MACHINE}" in
arm*) configure_args="-DNEON_SIMD_ENABLE=OFF"
esac
post_install() {
rm -rf ${DESTDIR}/usr/lib/uhd/tests
}
uhd-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/man/man1
vmove usr/lib/pkgconfig
vmove usr/lib/uhd/examples
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}
uhd-doc_package() {
short_desc+=" - doc files"
archs=noarch
pkg_install() {
vmove usr/share/doc
}
}