diff options
Diffstat (limited to 'community/rtl-sdr/PKGBUILD')
-rw-r--r-- | community/rtl-sdr/PKGBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/community/rtl-sdr/PKGBUILD b/community/rtl-sdr/PKGBUILD index e19179288..76f5a20ec 100644 --- a/community/rtl-sdr/PKGBUILD +++ b/community/rtl-sdr/PKGBUILD @@ -1,12 +1,12 @@ -# $Id: PKGBUILD 99146 2013-10-25 04:57:24Z 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=20131024 -_commit=dbede4e3c0a +pkgver=20131105 +_commit=c5b8a2130007 pkgrel=1 pkgdesc="Driver for Realtek RTL2832U, allowing general purpose software defined radio (SDR)." arch=('i686' 'x86_64') @@ -24,6 +24,11 @@ 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 @@ -36,8 +41,8 @@ build() { 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: |