New Package: rtl-sdr and library - trasform RTL2832 in a SDR receiver

First brick of the Ham section of voidlinux

Regards
Carlo
This commit is contained in:
onekk 2014-05-25 13:27:05 +02:00
parent d376df4034
commit 6a42ebdc25
4 changed files with 43 additions and 0 deletions

View file

@ -1626,3 +1626,4 @@ libgmock_main.so.0 gmock-1.7.0_1
libopensc.so.3 libopensc-0.13.0_2
libsmm-local.so.3 libopensc-0.13.0_2
libSDL2_ttf-2.0.so.0 SDL2_ttf-2.0.12_1
librtlsdr.so.0 librtlsdr-0.5.3_1

1
srcpkgs/librtlsdr-devel Symbolic link
View file

@ -0,0 +1 @@
librtlsdr

View file

@ -0,0 +1,40 @@
# Template file for 'librtlsdr'
pkgname=librtlsdr
version=0.5.3
revision=1
build_style=cmake
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
license="GPL-2"
short_desc="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
hostmakedepends="cmake pkg-config"
makedepends="libusb-devel"
distfiles="https://github.com/steve-m/${pkgname}/archive/v${version}.tar.gz"
checksum="98fb5c34ac94d6f2235a0bb41a08f8bed7949e1d1b91ea57a7c1110191ea58de"
librtlsdr-devel_package() {
short_desc+=" - development files"
depends="${pkgname}>=${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"
#depends="${pkgname}>=${version}_${revision}"
pkg_install() {
vmove usr/bin
}
}
post_install(){
mkdir -p ${DESTDIR}/usr/lib/udev/rules.d
cp ${wrksrc}/rtl-sdr.rules ${DESTDIR}/usr/lib/udev/rules.d/53-rtl-sdr.rules
}

1
srcpkgs/rtl-sdr Symbolic link
View file

@ -0,0 +1 @@
librtlsdr