summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1b828eb34636ce1b3ce2d3a4682d30d3693247e (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
# Maintainer: Gilbert Gilb's <gilbsgilbert@gmail.com>

pkgname="py-parrot-zik-git"
_reponame="pyParrotZik"
pkgver=r170.584ee9d
pkgrel=1
pkgdesc="PyParrotZik is a simple applet indicator for Parrot Zik headset."
arch=('any')
license=('GPLv2+')
url="https://github.com/m0sia/${_reponame}"
depends=('python2-pybluez' 'python2-beautifulsoup4' 'python2-dbus' 'python2-libappindicator' 'pygtk')
makedepends=('git' 'python2-setuptools')
provides=("")
conflicts=("")
source=("${_reponame}"::"git+https://github.com/m0sia/${_reponame}")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_reponame}"
	( set -o pipefail
	git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' \
	|| printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

build() {
	cd "${srcdir}/${_reponame}"
	python2 setup.py clean
	rm -rf build dist
	python2 setup.py build
}

package() {
	cd "${srcdir}/${_reponame}"
	python2 setup.py install --root="${pkgdir}"
}