[arch-commits] Commit in urh/repos (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Thu May 5 07:06:09 UTC 2022
Date: Thursday, May 5, 2022 @ 07:06:08
Author: arojas
Revision: 1195485
archrelease: copy trunk to community-staging-x86_64
Added:
urh/repos/community-staging-x86_64/
urh/repos/community-staging-x86_64/PKGBUILD
(from rev 1195484, urh/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: urh/repos/community-staging-x86_64/PKGBUILD (from rev 1195484, urh/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-05 07:06:08 UTC (rev 1195485)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe LaĆns (FFY00) <lains at archlinuc.org>
+# Contributor: Johannes Pohl <johannes.pohl90 at gmail.com>
+
+pkgname=urh
+pkgver=2.9.3
+pkgrel=1
+pkgdesc='Universal Radio Hacker: investigate wireless protocols like a boss'
+arch=('x86_64')
+url='https://github.com/jopohl/urh'
+license=('GPL3')
+depends=('python' 'python-pyqt5' 'python-numpy' 'python-psutil' 'cython')
+makedepends=('gcc' 'python-setuptools' 'airspy' 'hackrf' 'libuhd' 'limesuite' 'rtl-sdr' 'bladerf' 'libiio')
+checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'xorg-server-xvfb')
+optdepends=('airspy: Airspy backend'
+ 'cython: compiling native modules inside URH'
+ 'hackrf: HackRF backend'
+ 'libuhd: USRP backend'
+ 'limesuite: LimeSDR backend'
+ 'rtl-sdr: RTL-SDR backend'
+ 'gnuradio: GNURadio backend'
+ 'bladerf: BladeRF backend'
+ 'python-pylibiio: IIO backend (PlutoSDR)'
+ 'gnuradio-osmosdr: OsmoSDR backend, via GNURadio'
+ 'python-pyaudio: Soundcard backend')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jopohl/urh/archive/v$pkgver.tar.gz")
+sha512sums=('5d166d6895271a6f2c5cc09f80fef2b7780f4ceec030fdfe229abafa76d77718bc5ca6d0b462c3745e71a28f2172534e756a795c3ec95f4f0f23efab8bd69e82')
+
+build() {
+ cd $pkgname-$pkgver
+
+ python setup.py build build_ext
+ python src/urh/cythonext/build.py
+}
+
+check() {
+ cd $pkgname-$pkgver
+
+ xvfb-run pytest --boxed
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" -O1 --skip-build
+
+ install -Dm644 ./data/urh.desktop "$pkgdir"/usr/share/applications/urh.desktop
+ install -Dm 644 data/icons/appicon.png "$pkgdir"/usr/share/pixmaps/urh.png
+ install -Dm 644 README.md "$pkgdir"/usr/share/doc/$pkgname/README
+}
More information about the arch-commits
mailing list