summaryrefslogtreecommitdiff
path: root/community/rtl-sdr
diff options
context:
space:
mode:
Diffstat (limited to 'community/rtl-sdr')
-rw-r--r--community/rtl-sdr/PKGBUILD41
-rw-r--r--community/rtl-sdr/rtl-sdr.install8
-rw-r--r--community/rtl-sdr/rtlsdr.conf4
3 files changed, 53 insertions, 0 deletions
diff --git a/community/rtl-sdr/PKGBUILD b/community/rtl-sdr/PKGBUILD
new file mode 100644
index 000000000..63cefd78f
--- /dev/null
+++ b/community/rtl-sdr/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 95461 2013-08-12 16:40:03Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Michael Düll <mail@akurei.me>
+
+pkgname=rtl-sdr
+# they are just starting to play with tags
+# consider using tags for the pkgver in the future
+pkgver=20130604
+_pkgtag=v0.5.0
+pkgrel=1
+pkgdesc="Driver for Realtek RTL2832U, allowing general purpose software defined radio (SDR)."
+arch=('i686' 'x86_64')
+url="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
+license=('GPL')
+depends=('libusb>=1.0')
+makedepends=('git' 'cmake')
+conflicts=('rtl-sdr-git')
+install=rtl-sdr.install
+source=("git://git.osmocom.org/rtl-sdr.git#tag=$_pkgtag"
+ 'rtlsdr.conf')
+md5sums=('SKIP'
+ '9c65be40f8916a220e3f55b819897331')
+
+_gitname="rtl-sdr"
+
+build() {
+ cd "$srcdir/$_gitname"
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -Wno-dev ../
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname/build"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 "$srcdir/$_gitname/rtl-sdr.rules" "$pkgdir/usr/lib/udev/rules.d/10-rtl-sdr.rules"
+ install -D -m644 "$srcdir/rtlsdr.conf" "$pkgdir/etc/modprobe.d/rtlsdr.conf"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/rtl-sdr/rtl-sdr.install b/community/rtl-sdr/rtl-sdr.install
new file mode 100644
index 000000000..d023ec1db
--- /dev/null
+++ b/community/rtl-sdr/rtl-sdr.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo ">>> You can not use a DVB stick for both DVB and SDR. There is a driver conflict. /etc/modprobe.d/rtlsdr.conf blacklists the DVB drivers."
+}
+
+post_upgrade() {
+ post_install
+}
+
diff --git a/community/rtl-sdr/rtlsdr.conf b/community/rtl-sdr/rtlsdr.conf
new file mode 100644
index 000000000..f3ff30344
--- /dev/null
+++ b/community/rtl-sdr/rtlsdr.conf
@@ -0,0 +1,4 @@
+# disable DVB drivers
+blacklist rtl2830
+blacklist rtl2832
+blacklist dvb_usb_rtl28xxu