summaryrefslogtreecommitdiff
path: root/pcr/python-zbase32/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-18 10:35:43 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-18 10:37:16 +0100
commitd44a586a390f14f1eb327fd59a1c1c6b966ff311 (patch)
treedda40db658cccbb9ca1a64873ce22201a4256c14 /pcr/python-zbase32/PKGBUILD
parent92c04e61e971b4c129e641b2e5ea2f2036e9cb9f (diff)
downloadabslibre-d44a586a390f14f1eb327fd59a1c1c6b966ff311.tar.gz
abslibre-d44a586a390f14f1eb327fd59a1c1c6b966ff311.tar.bz2
abslibre-d44a586a390f14f1eb327fd59a1c1c6b966ff311.zip
pcr/python-zbase32: moved from pcr/zbase32 and updated
Diffstat (limited to 'pcr/python-zbase32/PKGBUILD')
-rw-r--r--pcr/python-zbase32/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/python-zbase32/PKGBUILD b/pcr/python-zbase32/PKGBUILD
new file mode 100644
index 000000000..c8189d9a3
--- /dev/null
+++ b/pcr/python-zbase32/PKGBUILD
@@ -0,0 +1,35 @@
+# repolint: reason=asdeps
+
+_pkgname=zbase32
+pkgname=(python2-$_pkgname)
+pkgver=1.1.5
+pkgrel=1
+pkgdesc="base32 encoder/decoder"
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/zbase32"
+license=(BSD)
+
+makedepends=(python2-setuptools python2-pyutil)
+source=("https://pypi.python.org/packages/source/z/zbase32/zbase32-$pkgver.tar.gz")
+sha256sums=('9b25c34ba586cbbad4517af516e723599a6f38fc560f4797855a5f3051e6422f')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python2 setup.py test
+}
+
+_package() {
+ depends=($1 $1-pyutil)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+ install -Dm644 PKG-INFO* $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done