summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdf1aa7c90a2c28712ed0996f441c16cf86933d0 (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
# Maintainer: grufo <madmurphy333 AT gmail DOT com>

_appname='gnunet'
_modname="${_appname}-python"
pkgname="${_modname}-git"
pkgver='r44.a3707a2'
pkgrel=1
pkgdesc='GNUnet Python bindings'
arch=('any')
url="http://${_appname}.org"
license=('GPL')
conflicts=("${_modname}" "${_modname}-bin")
provides=("${_modname}")
depends=("${_appname}" 'python')
source=("git+https://git.${_appname}.org/${_modname}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${_modname}"
	printf "'r%s.%s'" \
		"$(git rev-list --count HEAD)" \
		"$(git rev-parse --short HEAD)"
}

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