diff options
Diffstat (limited to 'pcr/python-pyparser/PKGBUILD')
-rw-r--r-- | pcr/python-pyparser/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/python-pyparser/PKGBUILD b/pcr/python-pyparser/PKGBUILD new file mode 100644 index 000000000..b0f6f6191 --- /dev/null +++ b/pcr/python-pyparser/PKGBUILD @@ -0,0 +1,27 @@ + +_pkgname=pyparser +pkgname=(python-$_pkgname) +pkgver=1.0 +pkgrel=1 +pkgdesc="pyparser is a collection of classes to make it easier to parse text data in a pythonic way." +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') + +prepare() { + cd "$srcdir"/$_pkgname-$pkgver + sed -i 's/==/>=/' requirements.txt +} + +_package(){ + depends=($1 $1-parse) + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done |