[arch-commits] Commit in qspectrumanalyzer (trunk trunk/PKGBUILD trunk/setenv.patch)

Filipe Laíns ffy00 at archlinux.org
Wed Aug 15 10:06:58 UTC 2018


    Date: Wednesday, August 15, 2018 @ 10:06:58
  Author: ffy00
Revision: 371711

import from aur

Added:
  qspectrumanalyzer/trunk/
  qspectrumanalyzer/trunk/PKGBUILD
  qspectrumanalyzer/trunk/setenv.patch

--------------+
 PKGBUILD     |   35 +++++++++++++++++++++++++++++++++++
 setenv.patch |   13 +++++++++++++
 2 files changed, 48 insertions(+)

Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD	                        (rev 0)
+++ trunk/PKGBUILD	2018-08-15 10:06:58 UTC (rev 371711)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Michael Lass <bevan at bi-co.net>
+# Contributor: Michal Krenek (Mikos) <m.krenek at gmail.com>
+
+pkgname=qspectrumanalyzer
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="Spectrum analyzer for multiple SDR platforms."
+arch=('any')
+url="https://github.com/xmikos/qspectrumanalyzer"
+license=('GPL3')
+depends=('python-qt.py' 'python-pyqt5' 'python-pyqtgraph' 'soapy_power>=1.5.0' 'python-setuptools')
+optdepends=('rtl_power_fftw: Alternative RTL-SDR backend using FFTW library. Much faster than rtl_power.'
+	    'rtl-sdr: original rtl_power backend. Slightly broken, use rtl-sdr-keenerd-git instead.'
+	    'rx_tools: rx_power backend. Universal SoapySDR based backend, but seems slow and buggy.'
+	    'hackrf: hackrf_sweep backend. Wideband spectrum monitoring with sweep rate of 8 GHz/s.')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        'setenv.patch')
+sha256sums=('d50e13fa4951a67ed4f56362fb74daff9faeda88d7fc3f9d98cffb8d63c6311d'
+            '9205115603abf8c555d4325246f4b57207002cc7037f96a6e9a3a2cfa9d18037')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+  python setup.py build
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  # Patch start script to enforce usage of PyQt5
+  cd "$pkgdir"
+  patch -p1 < "$srcdir"/setenv.patch
+}


Property changes on: qspectrumanalyzer/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: trunk/setenv.patch
===================================================================
--- trunk/setenv.patch	                        (rev 0)
+++ trunk/setenv.patch	2018-08-15 10:06:58 UTC (rev 371711)
@@ -0,0 +1,13 @@
+diff -ru a/usr/bin/qspectrumanalyzer b/usr/bin/qspectrumanalyzer
+--- a/usr/bin/qspectrumanalyzer	2018-07-12 21:32:07.933877786 +0200
++++ b/usr/bin/qspectrumanalyzer	2018-07-12 21:31:58.713698962 +0200
+@@ -4,6 +4,9 @@
+ import re
+ import sys
+ from pkg_resources import load_entry_point
++import os
++
++os.environ['QT_PREFERRED_BINDING'] = 'PyQt5'
+ 
+ if __name__ == '__main__':
+     sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])



More information about the arch-commits mailing list