summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--onionbalance-git/.gitignore1
-rw-r--r--onionbalance-git/PKGBUILD33
2 files changed, 34 insertions, 0 deletions
diff --git a/onionbalance-git/.gitignore b/onionbalance-git/.gitignore
new file mode 100644
index 000000000..027e3818a
--- /dev/null
+++ b/onionbalance-git/.gitignore
@@ -0,0 +1 @@
+onionbalance
diff --git a/onionbalance-git/PKGBUILD b/onionbalance-git/PKGBUILD
new file mode 100644
index 000000000..14faf3007
--- /dev/null
+++ b/onionbalance-git/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Joe Holden <jwh@zorins.us>
+_pkgname=onionbalance
+pkgname=${_pkgname}-git
+pkgver=0.2.2
+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")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$_pkgname
+ git describe --tags "${pkgver##*+}" | \
+ 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
+}