tAdd py-stem - paraports - parazyd's aports
HTML git clone https://git.parazyd.org/paraports
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 55bf64de387eff7f6e661a6fda12ac47b5159f49
DIR parent 0501109a2ade0f460ff5e34b90a3a7b2b06f86fe
HTML Author: parazyd <parazyd@dyne.org>
Date: Thu, 25 Jul 2019 11:35:00 +0200
Add py-stem
Diffstat:
A py-stem/APKBUILD | 46 +++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+), 0 deletions(-)
---
DIR diff --git a/py-stem/APKBUILD b/py-stem/APKBUILD
t@@ -0,0 +1,46 @@
+# Maintainer: Ivan J. <parazyd@dyne.org>
+pkgname=py-stem
+_pkgname=stem
+pkgver=1.7.1
+pkgrel=0
+pkgdesc="Stem is a Python controller library for Tor"
+url="https://stem.torproject.org"
+arch="noarch"
+license="LGPL-3"
+depends="tor"
+makedepends="python2-dev python3-dev py-setuptools http-parser-dev libev-dev"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+sha512sums="a275f59bba650cb5bb151cf53fb1dd820334f9abbeae1a25e64502adc854c7f54c51bc3d6c1656b595d142fc0695ffad53aab3c57bc285421c1f4f10c9c3db4c stem-1.7.1.tar.gz"