void-packages/srcpkgs/librtlsdr/template
maxice8 c35c3ffeeb librtlsdr: update to 0.5.4.
Closes #13942.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-30 19:08:03 +02:00

35 lines
928 B
Bash

# Template file for 'librtlsdr'
pkgname=librtlsdr
version=0.5.4
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="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
distfiles="https://github.com/steve-m/${pkgname}/archive/v${version}.tar.gz"
checksum=6fd0d298c1a18fc8005b0c2f6199b08bc15e3fb4f4312f551eea2ae269c940c5
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
}