46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'uhd'
|
|
pkgname=uhd
|
|
version=3.15.0.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}"
|
|
build_wrksrc=host
|
|
build_style=cmake
|
|
hostmakedepends="doxygen pkg-config python3-Mako python3-numpy python3-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=eed4a77d75faafff56be78985950039f8d9d1eb9fcbd58b8862e481dd49825cd
|
|
python_version=2 #unverified
|
|
|
|
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
|
|
}
|
|
}
|