addpkg: python-base32-crockford 0.3.0-1

This commit is contained in:
George Rawlinson 2021-08-26 01:16:15 +00:00
parent a26c88db62
commit 445d73d341
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -0,0 +1,35 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-base32-crockford
_pkgname="${pkgname#python-}"
pkgver=0.3.0
pkgrel=1
pkgdesc="A Python implementation of Douglas Crockford's base32 encoding scheme"
arch=('any')
url="https://github.com/jbittel/base32-crockford"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('ccfa2edd557405e7c8ca415254c6fb1612bc961f9c79ad21cc3e3cc6148763d1a15f9b08daa7ca890cf035f55979f16c6f9075f4bde86f590a8533d2cde4f531')
build() {
cd "$_pkgname-$pkgver"
python setup.py build
}
check() {
cd "$_pkgname-$pkgver"
python -m unittest
}
package() {
cd "$_pkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}