aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-rencode
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-rencode')
-rw-r--r--community/py-rencode/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py-rencode/APKBUILD b/community/py-rencode/APKBUILD
new file mode 100644
index 0000000000..5a06a92e17
--- /dev/null
+++ b/community/py-rencode/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-rencode
+_pkgname=rencode
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="The rencode module is similar to bencode from the BitTorrent project."
+url="https://pypi.python.org/pypi/rencode"
+arch="all"
+license="GPL3"
+depends="python cython"
+depends_dev=""
+makedepends="$depends_dev py-setuptools cython-dev python-dev"
+install=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz"
+
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="3bdbec5c50d845e5367ba53c5b85d1a4 py-rencode-1.0.5.tar.gz"
+sha256sums="cbdb8d2473aa5a7246e1a8077055be697fccec88477b78248c5fe93d79e2cd26 py-rencode-1.0.5.tar.gz"
+sha512sums="809d7070b746fe77419e7b4d2eed274e1e0b3b4f15bcddb466806478a90f89965b0b456443b390cce6d1ca9df409367f336dd659f4481cd442e3cc459bd63c18 py-rencode-1.0.5.tar.gz"