addpkg: python-base32-crockford 0.3.0-1
This commit is contained in:
parent
a26c88db62
commit
445d73d341
1 changed files with 35 additions and 0 deletions
35
python-base32-crockford/PKGBUILD
Normal file
35
python-base32-crockford/PKGBUILD
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue