diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-zbase32/PKGBUILD | 35 | ||||
-rw-r--r-- | pcr/zbase32/PKGBUILD | 25 |
2 files changed, 35 insertions, 25 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 diff --git a/pcr/zbase32/PKGBUILD b/pcr/zbase32/PKGBUILD deleted file mode 100644 index cbc73632c..000000000 --- a/pcr/zbase32/PKGBUILD +++ /dev/null @@ -1,25 +0,0 @@ -# Contributor (Arch): Peter Simons <simons@cryp.to> -# Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com> -pkgname=zbase32 -pkgver=1.1.5 -pkgrel=1 -pkgdesc="alternate base32 encoder (not RFC 3548 compliant)" -arch=('i686' 'x86_64') -url='http://pypi.python.org/pypi/zbase32' -license=('BSD') -depends=('python2') -makedepends=('setuptools' 'darcsver' 'setuptools_darcs' 'pyutil') -source=( http://pypi.python.org/packages/source/z/zbase32/zbase32-$pkgver.tar.gz ) -md5sums=('4dba0be4ac6d66968de8e5173f51d65d') - -build() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py build - python2 setup.py test -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir" - install -Dm644 PKG-INFO* $pkgdir/usr/share/licenses/$pkgname/LICENSE -} |