[arch-commits] Commit in rtl-sdr/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:14:03 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:14:02
  Author: felixonmars
Revision: 659622

archrelease: copy trunk to community-staging-x86_64

Added:
  rtl-sdr/repos/community-staging-x86_64/
  rtl-sdr/repos/community-staging-x86_64/PKGBUILD
    (from rev 659620, rtl-sdr/trunk/PKGBUILD)
  rtl-sdr/repos/community-staging-x86_64/rtl-sdr.install
    (from rev 659620, rtl-sdr/trunk/rtl-sdr.install)
  rtl-sdr/repos/community-staging-x86_64/rtlsdr.conf
    (from rev 659620, rtl-sdr/trunk/rtlsdr.conf)

-----------------+
 PKGBUILD        |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 rtl-sdr.install |    8 ++++++++
 rtlsdr.conf     |    4 ++++
 3 files changed, 61 insertions(+)

Copied: rtl-sdr/repos/community-staging-x86_64/PKGBUILD (from rev 659620, rtl-sdr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:14:02 UTC (rev 659622)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Michael Düll <mail at akurei.me>
+
+pkgname=rtl-sdr
+# they are just starting to play with tags
+# consider using tags for the pkgver in the future
+pkgver=0.6.0
+pkgrel=2
+epoch=1
+pkgdesc="Driver for Realtek RTL2832U, allowing general purpose software defined radio (SDR)."
+arch=('x86_64')
+url="https://sdr.osmocom.org/trac/wiki/rtl-sdr"
+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#tag=$pkgver"
+        'rtlsdr.conf')
+sha512sums=('SKIP'
+            '45be9e6d5b6ab0db3c3210173e5eb76067236e098a5f27552706fd6adcbbd09cc3eeeaaa30efb1a24930543a89ee26806bb3b37135e4a53a62db00dcaaedea74')
+
+_gitname="rtl-sdr"
+
+# todo: fix upstream's udev rule location and group
+
+#pkgver() {
+#  cd "$srcdir/$_gitname"
+#  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+#}
+
+build() {
+  cd "$srcdir/$_gitname"
+  mkdir -p build
+  cd build
+  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+        -DDETACH_KERNEL_DRIVER=ON -Wno-dev ../
+  make
+}
+
+package() {
+  cd "$srcdir/$_gitname/build"
+  make DESTDIR="$pkgdir" install
+  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:

Copied: rtl-sdr/repos/community-staging-x86_64/rtl-sdr.install (from rev 659620, rtl-sdr/trunk/rtl-sdr.install)
===================================================================
--- community-staging-x86_64/rtl-sdr.install	                        (rev 0)
+++ community-staging-x86_64/rtl-sdr.install	2020-07-07 17:14:02 UTC (rev 659622)
@@ -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
+}
+

Copied: rtl-sdr/repos/community-staging-x86_64/rtlsdr.conf (from rev 659620, rtl-sdr/trunk/rtlsdr.conf)
===================================================================
--- community-staging-x86_64/rtlsdr.conf	                        (rev 0)
+++ community-staging-x86_64/rtlsdr.conf	2020-07-07 17:14:02 UTC (rev 659622)
@@ -0,0 +1,4 @@
+# disable DVB drivers
+blacklist rtl2830
+blacklist rtl2832
+blacklist dvb_usb_rtl28xxu



More information about the arch-commits mailing list