diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:41:38 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:44:35 +0100 |
commit | ddc5f02e7964197aa522154119ccee0973ede2fb (patch) | |
tree | 834402ad9867879d9198e6478163bc25a61cb93a /pcr/python-habanero | |
parent | 5fb91ec2e0953f9ad754d688f3d329fb1d89fafe (diff) | |
download | abslibre-ddc5f02e7964197aa522154119ccee0973ede2fb.tar.gz abslibre-ddc5f02e7964197aa522154119ccee0973ede2fb.tar.bz2 abslibre-ddc5f02e7964197aa522154119ccee0973ede2fb.zip |
pcr/python-habanero: rebuilt
Diffstat (limited to 'pcr/python-habanero')
-rw-r--r-- | pcr/python-habanero/PKGBUILD | 24 |
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 |