9f000bb8ec
Closes #9749. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'hackrf'
|
|
pkgname=hackrf
|
|
version=2017.02.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"
|
|
checksum=1dd1fbec98bf2fa56c92f82fd66eb46801a2248c019c4707b3971bc187cb973a
|
|
|
|
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
|
|
}
|
|
}
|