diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:41:28 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:44:35 +0100 |
commit | 5fb91ec2e0953f9ad754d688f3d329fb1d89fafe (patch) | |
tree | a8e9ed09b1485d4598fce64ccbc31070d6da1617 /pcr/python-pyparser | |
parent | da044bd29113895d2691fc7ec091beba43dc6cb2 (diff) | |
download | abslibre-5fb91ec2e0953f9ad754d688f3d329fb1d89fafe.tar.gz abslibre-5fb91ec2e0953f9ad754d688f3d329fb1d89fafe.tar.bz2 abslibre-5fb91ec2e0953f9ad754d688f3d329fb1d89fafe.zip |
pcr/python-pyparser: rebuilt
Diffstat (limited to 'pcr/python-pyparser')
-rw-r--r-- | pcr/python-pyparser/PKGBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/pcr/python-pyparser/PKGBUILD b/pcr/python-pyparser/PKGBUILD index 2f6fad8bf..1042a0505 100644 --- a/pcr/python-pyparser/PKGBUILD +++ b/pcr/python-pyparser/PKGBUILD @@ -1,27 +1,30 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> _pkgname=pyparser -pkgname=(python-$_pkgname) +pkgname=(python{,2}-$_pkgname) pkgver=1.0 -pkgrel=2 +pkgrel=3 pkgdesc="pyparser is a collection of classes to make it easier to parse text data in a pythonic way." -arch=('any') +arch=(any) url="https://pypi.python.org/pypi/$_pkgname" license=('GPLv3') -makedepends=('python-setuptools' 'python2-setuptools') -source=(https://pypi.python.org/packages/1a/7c/77a059dcf29b39e6c4315ce9e9c7d4959be6f13af8ee42e6d5376b599015/$_pkgname-$pkgver.tar.gz) -sha256sums=('d1b76e2dabdd2952cadfd545229cc144afee6130bf171a031d5bf53f11b912f5') + +_depends=(parse) +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +md5sums=('2a564841a03ca6279f50fef81952bdaa') prepare() { cd "$srcdir"/$_pkgname-$pkgver sed -i 's/==/>=/' requirements.txt } -_package(){ - depends=($1 $1-parse) +_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 |