void-packages/srcpkgs/hackrf/template

45 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'hackrf'
pkgname=hackrf
2018-01-29 09:04:41 +00:00
version=2018.01.1
revision=1
build_wrksrc=host
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libusb-devel fftw-devel"
_desc="Low cost software defined radio (SDR) platform"
short_desc="${_desc} - tools"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-2"
homepage="https://greatscottgadgets.com/hackrf/"
distfiles="https://github.com/mossmann/hackrf/releases/download/v${version}/${pkgname}-${version}.tar.xz"
2018-01-29 09:04:41 +00:00
checksum=a89badc09a1d2fa18367b3b2c974580ad5f6ce93aaa4e54557dc3d013c029d14
pre_configure() {
sed -i 's|MODE="660", GROUP="plugdev"|TAG+="uaccess"|g' libhackrf/53-hackrf.rules
}
post_install() {
for f in ../firmware-bin/*.{bin,dfu,xsvf}; do
vinstall "$f" 644 usr/share/hackrf/
done
}
libhackrf_package() {
short_desc="${_desc} - library"
pkg_install() {
vmove usr/lib/*.so.*
vinstall libhackrf/53-hackrf.rules 644 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
}
}