void-packages/srcpkgs/librtlsdr/template
2018-08-29 23:20:13 +02:00

35 lines
928 B
Bash

# Template file for 'librtlsdr'
pkgname=librtlsdr
version=0.6.0
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libusb-devel"
short_desc="Turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
maintainer="Carlo Dormeletti <carlo.dormeletti@alice.it>"
license="GPL-2.0-or-later"
homepage="https://osmocom.org/projects/rtl-sdr/wiki"
distfiles="https://github.com/steve-m/${pkgname}/archive/${version}.tar.gz"
checksum=80a5155f3505bca8f1b808f8414d7dcd7c459b662a1cde84d3a2629a6e72ae55
librtlsdr-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
rtl-sdr_package() {
short_desc+=" - helper and test programs"
pkg_install() {
vmove usr/bin
}
}
post_install() {
vinstall rtl-sdr.rules 644 usr/lib/udev/rules.d 53-rtl-sdr.rules
}