summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 14 insertions, 23 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d0dc017d930..42ad790c936 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,24 @@
# Maintainer: James Zhu <james.zhu.engineer@gmail.com>
+# Maintainer: Nathan Owens <ndowens @ artixlinux.org>
-pkgbase=python-pyrtlsdr
-pkgname=(python-pyrtlsdr python2-pyrtlsdr)
-_pkgname=pyrtlsdr
-pkgver=0.2.4
+pkgname=python-pyrtlsdr
+pkgver=0.2.92
pkgrel=1
-pkgdesc="A Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)"
+pkgdesc="Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)"
arch=(any)
url="http://pypi.org/project/pyrtlsdr"
license=('GPL3')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pypandoc' 'python2-pypandoc')
+makedepends=('python-setuptools'
+ 'python-pypandoc'
+ 'git')
+depends=('python-sphinx'
+ 'python-sphinx_rtd_theme'
+ 'm2r')
options=(!emptydirs)
-source=("https://github.com/roger-/$_pkgname/archive/v$pkgver.zip")
-md5sums=('57b5f4e60262968e7e64b5cbe89e022f')
+source=("git+https://github.com/roger-/pyrtlsdr#tag=v$pkgver")
+sha256sums=('SKIP')
-build() {
- cp -a $_pkgname-$pkgver{,-py2}
-}
-
-package_python-pyrtlsdr() {
- depends=('python' 'rtl-sdr')
- optdepends=('python-numpy')
- cd "$srcdir/${_pkgname}-${pkgver}"
+package() {
+ cd "$srcdir/pyrtlsdr"
python setup.py install --root="$pkgdir/" --optimize=1
}
-
-package_python2-pyrtlsdr() {
- depends=('python2' 'rtl-sdr')
- optdepends=('python2-numpy')
- cd "$srcdir/${_pkgname}-${pkgver}-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
-}