void-packages/srcpkgs/hackrf/template

43 lines
1.1 KiB
Bash

# Template file for 'hackrf'
pkgname=hackrf
version=2023.01.1
revision=1
build_wrksrc=host
build_style=cmake
configure_args="-DUDEV_RULES_PATH=/usr/lib/udev/rules.d/ -DUDEV_RULES_GROUP=plugdev
-Wno-dev"
hostmakedepends="pkg-config"
makedepends="libusb-devel fftw-devel"
_desc="Low cost software defined radio (SDR) platform"
short_desc="${_desc} - tools"
maintainer="DragonGhost7 <darkiridiumghost@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://greatscottgadgets.com/hackrf/"
distfiles="https://github.com/greatscottgadgets/hackrf/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=32a03f943a30be4ba478e94bf69f14a5b7d55be6761007f4a4f5453418206a11
post_install() {
for f in ../firmware-bin/*.{bin,dfu}; do
vinstall "$f" 644 usr/share/hackrf/
done
}
libhackrf_package() {
short_desc="${_desc} - library"
pkg_install() {
vmove usr/lib/*.so.*
vmove usr/lib/udev/rules.d
}
}
libhackrf-devel_package() {
short_desc="${_desc} - development files"
depends="libhackrf>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}