diff options
Diffstat (limited to 'community/rtl-sdr/PKGBUILD')
-rw-r--r-- | community/rtl-sdr/PKGBUILD | 41 |
1 files changed, 41 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: |