diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-03-05 13:29:08 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-03-05 13:29:34 +0100 |
commit | f33401dbca698b90b3e567f8fbb7a6a1a12b6173 (patch) | |
tree | 12eeba48b0dea4e6cead2b72006a96fb7cb3d2ed /pcr/python-pyparser/PKGBUILD | |
parent | 7ecfe3c9184e9abc3a2d9118190af415f95f8b50 (diff) | |
download | abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.gz abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.bz2 abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.zip |
pcr/papis: added, plus dependencies
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 |