summaryrefslogtreecommitdiff
path: root/onionbalance-git/PKGBUILD
blob: 3caa6d096f0cdaf33dd71f5763bea985f454e68e (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Joe Holden <jwh@zorins.us>
_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
}