[arch-commits] Commit in qspectrumanalyzer/repos (3 files)
Filipe Laíns
ffy00 at archlinux.org
Fri Nov 13 17:25:42 UTC 2020
Date: Friday, November 13, 2020 @ 17:25:42
Author: ffy00
Revision: 753941
archrelease: copy trunk to community-staging-any
Added:
qspectrumanalyzer/repos/community-staging-any/
qspectrumanalyzer/repos/community-staging-any/PKGBUILD
(from rev 753940, qspectrumanalyzer/trunk/PKGBUILD)
qspectrumanalyzer/repos/community-staging-any/setenv.patch
(from rev 753940, qspectrumanalyzer/trunk/setenv.patch)
--------------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
setenv.patch | 13 +++++++++++++
2 files changed, 43 insertions(+)
Copied: qspectrumanalyzer/repos/community-staging-any/PKGBUILD (from rev 753940, qspectrumanalyzer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-13 17:25:42 UTC (rev 753941)
@@ -0,0 +1,30 @@
+# 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=4
+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' 'python-setuptools')
+optdepends=('rtl-sdr: Alternative backend'
+ 'rx_tools: Alternative backend'
+ 'hackrf: Alternative backend')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+ 'setenv.patch')
+sha256sums=('d50e13fa4951a67ed4f56362fb74daff9faeda88d7fc3f9d98cffb8d63c6311d'
+ '9205115603abf8c555d4325246f4b57207002cc7037f96a6e9a3a2cfa9d18037')
+
+build() {
+ cd $pkgname-$pkgver
+
+ python setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
Copied: qspectrumanalyzer/repos/community-staging-any/setenv.patch (from rev 753940, qspectrumanalyzer/trunk/setenv.patch)
===================================================================
--- community-staging-any/setenv.patch (rev 0)
+++ community-staging-any/setenv.patch 2020-11-13 17:25:42 UTC (rev 753941)
@@ -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