Date: Monday, August 12, 2013 @ 18:36:26
  Author: kkeen
Revision: 95460

upgpkg: rtl-sdr 20130604-1

Added:
  rtl-sdr/trunk/rtl-sdr.install
  rtl-sdr/trunk/rtlsdr.conf
Modified:
  rtl-sdr/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   36 +++++++++++++-----------------------
 rtl-sdr.install |    8 ++++++++
 rtlsdr.conf     |    4 ++++
 3 files changed, 25 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-08-12 13:58:43 UTC (rev 95459)
+++ PKGBUILD    2013-08-12 16:36:26 UTC (rev 95460)
@@ -3,8 +3,10 @@
 # Contributor: Michael Düll <m...@akurei.me>
 
 pkgname=rtl-sdr
-pkgver=20130201
-_commit="ea4dbd242d268e50163acb8df1ac662485b43632"
+# 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')
@@ -13,29 +15,16 @@
 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')
 
-_gitroot="git://git.osmocom.org/rtl-sdr.git"
 _gitname="rtl-sdr"
 
 build() {
-  cd "$srcdir"
-  msg "Connecting to GIT server...."
-
-  if [[ -d "$_gitname" ]]; then
-    cd "$_gitname" && git pull origin
-    msg "The local files are updated."
-  else
-    git clone "$_gitroot" "$_gitname"
-  fi
-
-  msg "GIT checkout done or server timeout"
-  msg "Starting build..."
-
-  rm -rf "$srcdir/$_gitname-build"
-  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
-  cd "$srcdir/$_gitname-build/"
-  git checkout "$_commit"
-
+  cd "$srcdir/$_gitname"
   mkdir build
   cd build
   cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -Wno-dev ../
@@ -43,9 +32,10 @@
 }
 
 package() {
-  cd "$srcdir/$_gitname-build/build/"
+  cd "$srcdir/$_gitname/build"
   make DESTDIR="$pkgdir" install
-  install -D -m644 "$srcdir/$_gitname-build/rtl-sdr.rules" 
"$pkgdir/usr/lib/udev/rules.d/10-rtl-sdr.rules"
+  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:

Added: rtl-sdr.install
===================================================================
--- rtl-sdr.install                             (rev 0)
+++ rtl-sdr.install     2013-08-12 16:36:26 UTC (rev 95460)
@@ -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
+}
+

Added: rtlsdr.conf
===================================================================
--- rtlsdr.conf                         (rev 0)
+++ rtlsdr.conf 2013-08-12 16:36:26 UTC (rev 95460)
@@ -0,0 +1,4 @@
+# disable DVB drivers
+blacklist rtl2830
+blacklist rtl2832
+blacklist dvb_usb_rtl28xxu

Reply via email to