summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-08 22:40:00 +0200
committerErich Eckner <git@eckner.net>2023-05-08 22:40:00 +0200
commit424246ba80437c3b188d4f4c301389672a90f153 (patch)
tree5c84bd3afa22817855f53034893bfdabeeaf45c0
parent9f5c93b079978e57aa2b9264dac0c9dfce394600 (diff)
downloadarchlinuxewe-424246ba80437c3b188d4f4c301389672a90f153.tar.xz
onionbalance-git new
-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
+}