void-packages/srcpkgs/uhd/template
Remi Pommarel 13575ee0f0
New package: uhd-3.13.0.2_1
[ci skip]
2019-01-15 02:55:23 -02:00

40 lines
1,007 B
Bash

# Template file for 'uhd'
pkgname=uhd
version=3.13.0.2
revision=1
wrksrc="${pkgname}-${version}"
build_wrksrc=host
build_style=cmake
hostmakedepends="doxygen pkg-config"
makedepends="python-Mako libusb-devel python-numpy python-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/"
distfiles="https://github.com/EttusResearch/uhd/archive/v${version}.tar.gz"
checksum=e18d0524cbf571be4847fd7f971dc30c37efd9e7a333761b74e1266a07cbd35b
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"
noarch=yes
pkg_install() {
vmove usr/share/doc
}
}