# Maintainer: Erich Eckner # Contributor: Joe Holden _pkgname=onionbalance pkgname=${_pkgname}-git pkgver=0.2.3+1+g732d2ec _commit="${pkgver##*+g}" pkgrel=1 pkgdesc='Onionbalance' arch=('any') license=('GPL-3.0') depends=(tor python-setuptools) makedepends=('git') url='https://gitlab.torproject.org/tpo/core/onionbalance' source=("git+https://gitlab.torproject.org/tpo/core/onionbalance.git") sha512sums=('SKIP') pkgver() { cd $srcdir/$_pkgname git describe --tags "${_commit}" | \ sed ' s/^v// y/-/+/ ' } build() { cd $srcdir/$_pkgname python setup.py build } package() { cd $srcdir/$_pkgname python setup.py install --root="$pkgdir/" --optimize=1 --skip-build }