summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7e625ee3f33f10dce6581b5711e76db126b7323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: TankMissile <alecfeldman at disroot dot org>
# Contributor: portaloffreedom <matteo dot dek at gmail dot com>

_pkgsrcname="pulsectl"
_pkgname="python-pulse-control"
_pkgname2="python2-pulse-control"
pkgname=($_pkgname $_pkgname2)
pkgver=20.2.2
pkgrel=1
pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio."
url="http://github.com/mk-fg/$_pkgname"
license=("MIT")
arch=("any")
makedepends=("python-setuptools" "python2-setuptools")
source=("https://pypi.io/packages/source/${_pkgsrcname::1}/$_pkgsrcname/$_pkgsrcname-$pkgver.tar.gz")
md5sums=("b6ec1fd903e8bbaebc06e0c257c9dc53")

prepare() {
	mv $_pkgsrcname-$pkgver $_pkgname-$pkgver
	cp -r $_pkgname-$pkgver $_pkgname2-$pkgver
}

build() {
	cd $_pkgname-$pkgver
	python setup.py build
	cd ../$_pkgname2-$pkgver
	python2 setup.py build
}

package_python-pulse-control() {
	depends=("python" "pulseaudio")
	cd $_pkgname-$pkgver
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

package_python2-pulse-control() {
	depends=("python2" "pulseaudio")
	cd $_pkgname2-$pkgver
	python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}