2014-05-25 13:27:05 +02:00
|
|
|
# Template file for 'librtlsdr'
|
|
|
|
pkgname=librtlsdr
|
|
|
|
version=0.5.3
|
2014-05-26 08:51:49 +02:00
|
|
|
revision=2
|
2014-05-25 13:27:05 +02:00
|
|
|
build_style=cmake
|
2014-10-27 18:05:31 +01:00
|
|
|
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
|
2014-05-25 13:27:05 +02:00
|
|
|
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() {
|
2014-05-26 08:51:49 +02:00
|
|
|
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"
|
|
|
|
}
|
2014-05-25 13:27:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
rtl-sdr_package() {
|
2014-05-26 08:51:49 +02:00
|
|
|
short_desc+=" - helper and test programs"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
}
|
2014-05-25 13:27:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install(){
|
2014-05-26 08:51:49 +02:00
|
|
|
vinstall rtl-sdr.rules 644 usr/lib/udev/rules.d 53-rtl-sdr.rules
|
2014-05-25 13:27:05 +02:00
|
|
|
}
|