summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD19
2 files changed, 33 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2ac0450a170
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-bencodepy
+ pkgdesc = A small Python 3 library for encoding and decoding Bencode data
+ pkgver = 0.9.4
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/bencodepy/
+ arch = any
+ license = GPL
+ depends = python
+ options = !emptydirs
+ source = https://pypi.python.org/packages/source/b/bencodepy/bencodepy-0.9.4.zip
+ md5sums = 9f769b69deb7ae1b38e448e52b9598f6
+
+pkgname = python-bencodepy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3027c06cd06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: James An <james@jamesan.ca>
+
+_pkgname=bencodepy
+pkgname=python-${_pkgname}
+pkgver=0.9.4
+pkgrel=1
+pkgdesc='A small Python 3 library for encoding and decoding Bencode data'
+arch=('any')
+url="https://pypi.python.org/pypi/${_pkgname}/${_pkgver}"
+license=('GPL')
+depends=('python')
+options=(!emptydirs)
+source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
+md5sums=('9f769b69deb7ae1b38e448e52b9598f6')
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}