summaryrefslogtreecommitdiff
path: root/community/rtl-sdr
diff options
context:
space:
mode:
Diffstat (limited to 'community/rtl-sdr')
-rw-r--r--community/rtl-sdr/PKGBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/community/rtl-sdr/PKGBUILD b/community/rtl-sdr/PKGBUILD
index 04c8afa7f..76f5a20ec 100644
--- a/community/rtl-sdr/PKGBUILD
+++ b/community/rtl-sdr/PKGBUILD
@@ -1,12 +1,12 @@
-# $Id: PKGBUILD 98280 2013-10-07 22:50:19Z kkeen $
+# $Id: PKGBUILD 100562 2013-11-05 21:31:17Z 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=20130913
-_commit=4914b5d4314b752
+pkgver=20131105
+_commit=c5b8a2130007
pkgrel=1
pkgdesc="Driver for Realtek RTL2832U, allowing general purpose software defined radio (SDR)."
arch=('i686' 'x86_64')
@@ -15,6 +15,7 @@ license=('GPL')
depends=('libusb>=1.0')
makedepends=('git' 'cmake')
conflicts=('rtl-sdr-git')
+options=('staticlibs')
install=rtl-sdr.install
source=("git://git.osmocom.org/rtl-sdr.git#commit=$_commit"
'rtlsdr.conf')
@@ -23,19 +24,25 @@ md5sums=('SKIP'
_gitname="rtl-sdr"
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+}
+
build() {
cd "$srcdir/$_gitname"
mkdir build
cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -Wno-dev ../
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DINSTALL_UDEV_RULES=ON -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"
+ install -Dm644 "$srcdir/$_gitname/rtl-sdr.rules" "$pkgdir/usr/lib/udev/rules.d/10-rtl-sdr.rules"
+ install -Dm644 "$srcdir/rtlsdr.conf" "$pkgdir/etc/modprobe.d/rtlsdr.conf"
}
# vim:set ts=2 sw=2 et: