diff options
Diffstat (limited to 'pcr/python-pylibgen/PKGBUILD')
-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 |