summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTankMissile2019-09-26 02:16:17 -0400
committerTankMissile2019-09-26 02:16:17 -0400
commit82de23ff1d341a164d6c81d015b6f74cec628137 (patch)
tree08c2bd2911dcddd9d1b03074503e1f28c71cf781 /PKGBUILD
parentb197e7bc7eb0319f9162e31ff4e02b11098e7c82 (diff)
downloadaur-82de23ff1d341a164d6c81d015b6f74cec628137.tar.gz
Now deals with python2 as well.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 27 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e894fc0dcfd..96dabf10bac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,36 @@
-# Maintainer: portaloffreedom
+# Maintainer: TankMissile
-_pkgsrcname=pulsectl
-pkgname=python-pulse-control
-pkgver=18.3.1
+_pkgsrcname="pulsectl"
+pkgname=("python-pulse-control" "python2-pulse-control")
+pkgver=19.9.5
pkgrel=1
-pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)"
+pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio."
url="http://github.com/mk-fg/python-pulse-control"
license=("MIT")
arch=("any")
-depends=('python' 'pulseaudio')
-source=("https://pypi.python.org/packages/5e/5f/b5d9a3728ca062b811c337e1e7c19d12ec3f95f13a511141c43ada5def94/$_pkgsrcname-$pkgver.tar.gz#md5=43ae095362d39b270df8cf3368fd7999")
-md5sums=('43ae095362d39b270df8cf3368fd7999')
+makedepends=("python-setuptools" "python2-setuptools")
+source=("https://files.pythonhosted.org/packages/d8/db/7c0055f9c2ff291c86cbd1f66baa63e8266086e650bb583262dbd642257f/$_pkgsrcname-$pkgver.tar.gz")
+md5sums=("f7e0b469bf8f63203b49f2a069568567")
-package() {
- cd $srcdir/${_pkgsrcname}-$pkgver
- python3 setup.py install --root $pkgdir
- rm -rf $pkgdir/usr/lib/python3.6/site-packages/$_pkgsrcname/tests/
+prepare() {
+ cp -a $_pkgsrcname-$pkgver{,-py2}
}
+build() {
+ cd $_pkgsrcname-$pkgver
+ python setup.py build
+ cd ../$_pkgsrcname-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-pulse-control() {
+ depends=("python" "pulseaudio")
+ cd $_pkgsrcname-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+package_python2-pulse-control() {
+ depends=("python2" "pulseaudio")
+ cd $_pkgsrcname-$pkgver-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}