summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorredfish2019-03-29 21:15:27 -0400
committerredfish2019-03-29 21:15:27 -0400
commit651c725c9800dd059f0873f5717a024034a498e6 (patch)
treec598fd131d81aee13419397988e95e55cc1f4e26
downloadaur-651c725c9800dd059f0873f5717a024034a498e6.tar.gz
2.0.0
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD26
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a9bd56b78db
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Sat Mar 30 01:14:58 UTC 2019
+pkgbase = python-bencode.py
+ pkgdesc = Simple bencode parser (for Python 2, Python 3 and PyPy)
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/fuzeman/bencode.py
+ arch = any
+ license = GPL
+ makedepends = python-setuptools
+ depends = python
+ source = https://pypi.io/packages/source/b//bencode.py-2.0.0.tar.gz
+ sha256sums = 067cf936e29a7b698d2b4d00902343b78d434d73d837c33d6ca1a8be6038fe72
+
+pkgname = python-bencode.py
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..5ac2a18f23b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.gz
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7df775ee346
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: redfish <redfish@galactica.pw>
+
+pkgname=python-bencode.py
+_pkgname=bencode.py
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='Simple bencode parser (for Python 2, Python 3 and PyPy)'
+arch=('any')
+url="https://github.com/fuzeman/bencode.py"
+license=('GPL')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/${_pkgname::1}/${_pkngame}/${_pkgname}-${pkgver}.tar.gz")
+#source=("https://github.com/fuzeman/bencode.py/archive/${pkver}.tar.gz")
+
+build() {
+ cd "$_pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+sha256sums=('067cf936e29a7b698d2b4d00902343b78d434d73d837c33d6ca1a8be6038fe72')