diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:41:49 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:44:35 +0100 |
commit | 0c7866cd99f57bc6f097a120439b526ee2212798 (patch) | |
tree | 82e445eadf2d3f0528a62426cac51d5450f03ee4 | |
parent | ddc5f02e7964197aa522154119ccee0973ede2fb (diff) | |
download | abslibre-0c7866cd99f57bc6f097a120439b526ee2212798.tar.gz abslibre-0c7866cd99f57bc6f097a120439b526ee2212798.tar.bz2 abslibre-0c7866cd99f57bc6f097a120439b526ee2212798.zip |
pcr/python-pylibgen: updated to 2.0.1
-rw-r--r-- | pcr/python-pylibgen/PKGBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pcr/python-pylibgen/PKGBUILD b/pcr/python-pylibgen/PKGBUILD index f0c2589b0..5ac0a4314 100644 --- a/pcr/python-pylibgen/PKGBUILD +++ b/pcr/python-pylibgen/PKGBUILD @@ -1,22 +1,26 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> _pkgname=pylibgen +# python3 only pkgname=(python-$_pkgname) -pkgver=1.3.1 -pkgrel=2 +pkgver=2.0.1 +pkgrel=1 pkgdesc="Python interface to Library Genesis." -arch=('any') +arch=(any) url="https://pypi.python.org/pypi/$_pkgname" license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') -source=(https://pypi.python.org/packages/e7/c8/1684fcb4149000877ba18046a9d5ddc59c6091793bdd0905ff4afaf9b244/$_pkgname-$pkgver.tar.gz) -sha256sums=('303b0f279504c6b97f7619835bc9005bdadf9860c8b7a5d8204b189747c471e7') -_package(){ - depends=($1) +_depends=() +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +md5sums=('fcd4c7ee85ccbccce44751c738ca6aed') + +_package() { + depends=("$1" "${_depends[@]/#/$1-}") cd "$srcdir"/$_pkgname-$pkgver $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 |