summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTankMissile2019-09-26 03:49:02 -0400
committerTankMissile2019-09-26 03:49:02 -0400
commit32f6e302c1996140da8aab9865d78a9b50125f06 (patch)
treeb8dd0f4cd829854336cd9596239598fdb03e1398 /PKGBUILD
parent82de23ff1d341a164d6c81d015b6f74cec628137 (diff)
downloadaur-32f6e302c1996140da8aab9865d78a9b50125f06.tar.gz
Made python versioning less confusing. Added contributor.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 96dabf10bac..de2fe93e4da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,14 @@
-# Maintainer: TankMissile
+# Maintainer: TankMissile <alecfeldman at disroot dot org>
+# Contributor: portaloffreedom <matteo dot dek at gmail dot com>
_pkgsrcname="pulsectl"
-pkgname=("python-pulse-control" "python2-pulse-control")
+_pkgname="python-pulse-control"
+_pkgname2="python2-pulse-control"
+pkgname=($_pkgname $_pkgname2)
pkgver=19.9.5
pkgrel=1
pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio."
-url="http://github.com/mk-fg/python-pulse-control"
+url="http://github.com/mk-fg/$_pkgname"
license=("MIT")
arch=("any")
makedepends=("python-setuptools" "python2-setuptools")
@@ -13,24 +16,25 @@ source=("https://files.pythonhosted.org/packages/d8/db/7c0055f9c2ff291c86cbd1f66
md5sums=("f7e0b469bf8f63203b49f2a069568567")
prepare() {
- cp -a $_pkgsrcname-$pkgver{,-py2}
+ mv $_pkgsrcname-$pkgver $_pkgname-$pkgver
+ cp -r $_pkgname-$pkgver $_pkgname2-$pkgver
}
build() {
- cd $_pkgsrcname-$pkgver
- python setup.py build
- cd ../$_pkgsrcname-$pkgver-py2
- python2 setup.py build
+ cd $_pkgname-$pkgver
+ python setup.py build
+ cd ../$_pkgname2-$pkgver
+ python2 setup.py build
}
package_python-pulse-control() {
- depends=("python" "pulseaudio")
- cd $_pkgsrcname-$pkgver
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ depends=("python" "pulseaudio")
+ cd $_pkgname-$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
+ depends=("python2" "pulseaudio")
+ cd $_pkgname2-$pkgver
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}