summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/python-habanero/PKGBUILD24
1 files changed, 12 insertions, 12 deletions
diff --git a/pcr/python-habanero/PKGBUILD b/pcr/python-habanero/PKGBUILD
index 18eab524f..a411d0413 100644
--- a/pcr/python-habanero/PKGBUILD
+++ b/pcr/python-habanero/PKGBUILD
@@ -1,25 +1,25 @@
+# Maintainer: Andreas Grapentin <oaken-source@parabola.nu>
_pkgname=habanero
-pkgname=(python-$_pkgname python2-$_pkgname)
+pkgname=(python{,2}-$_pkgname)
pkgver=0.6.2
pkgrel=1
pkgdesc="Low Level Client for Crossref Search API"
-arch=('any')
+arch=(any)
url="https://pypi.python.org/pypi/$_pkgname"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("https://files.pythonhosted.org/packages/e1/d8/612824d89999fabd8403dec3138ad4563a6606d46761a6d1930e63f47bb4/$_pkgname-$pkgver.tar.gz"
- "Changelog.rst")
-sha256sums=('806c74298e0fb8a838514307ef3eca73685a968b8efd00e5dfe1ea604200f59d'
- 'fc158555114ebe857c3f32bbcb76b1c6942eadf3ddd47cee4dcff7abeb453c63')
-_package(){
- depends=($1)
+_depends=()
+makedepends=(python{,2}-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('ecb477732b495dabe286b58e792b174d')
+
+_package() {
+ depends=("$1" "${_depends[@]/#/$1-}")
cd "$srcdir"/$_pkgname-$pkgver
- cp "$srcdir"/Changelog.rst .
$1 setup.py install --root="$pkgdir"
}
-for pkg in "${pkgname[@]}"; do
- eval "package_$pkg () { _package ${pkg%%-*}; }"
+for _pkg in "${pkgname[@]}"; do
+ eval "package_$_pkg () { _package ${_pkg%%-*}; }"
done