35 lines
940 B
Bash
35 lines
940 B
Bash
# 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
|
|
}
|