aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-setproctitle
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:04:25 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:04:25 +0200
commit355feb3d1a5e13bab80b7cc88a558853482b2ffb (patch)
treedba47377f4e1477c5e07049f5cb8148106221f2d /community/py-setproctitle
parent0bfefe6222f74fe0e6ecb22743b812adde08acc1 (diff)
downloadaports-355feb3d1a5e13bab80b7cc88a558853482b2ffb.tar.bz2
aports-355feb3d1a5e13bab80b7cc88a558853482b2ffb.tar.xz
community/py-setproctitle: moved from testing
Diffstat (limited to 'community/py-setproctitle')
-rw-r--r--community/py-setproctitle/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/py-setproctitle/APKBUILD b/community/py-setproctitle/APKBUILD
new file mode 100644
index 0000000000..7536535a8e
--- /dev/null
+++ b/community/py-setproctitle/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=py-setproctitle
+_pkgname="${pkgname#py-}"
+pkgver=1.1.10
+pkgrel=1
+pkgdesc="A Python module to customize the process title"
+url="https://github.com/dvarrazzo/py-setproctitle"
+arch="noarch"
+license="BSD"
+depends=""
+makedepends="python2-dev python3-dev musl-dev"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+source="$pkgname-$pkgver.tar.gz::https://github.com/dvarrazzo/$pkgname/archive/version-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-version-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ python setup.py build || return 1
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ arch="all"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+md5sums="bc3ab23d326b5cdc8ca0a1d45b422ae4 py-setproctitle-1.1.10.tar.gz"
+sha256sums="1c3a8f60b90bbe1d7987597c1ef637ecfbc8f4bb2a5500c36fb232ea7bedf925 py-setproctitle-1.1.10.tar.gz"
+sha512sums="987729fd4f6b1f6ca1bead0814a2917eee4a30b01cdd8c3f0d028c4f925f1d1eff2ee2fe3945a2770d9cc7a6f2e74059db21dc8cd112d66304bd481fd287da23 py-setproctitle-1.1.10.tar.gz"