38 lines
951 B
Bash
38 lines
951 B
Bash
# Template file for 'librtlsdr'
|
|
pkgname=librtlsdr
|
|
version=2.0.2
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://osmocom.org/projects/rtl-sdr/wiki"
|
|
distfiles="https://github.com/steve-m/librtlsdr/archive/v${version}.tar.gz"
|
|
checksum=f407de0b6dce19e81694814e363e8890b6ab2c287c8d64c27a03023e5702fb42
|
|
|
|
|
|
post_install() {
|
|
vinstall rtl-sdr.rules 644 usr/lib/udev/rules.d 53-rtl-sdr.rules
|
|
}
|
|
|
|
librtlsdr-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} libusb-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
rtl-sdr_package() {
|
|
short_desc+=" - helper and test programs"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|