summaryrefslogtreecommitdiff
path: root/pcr/python-bibtexparser
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-25 17:41:09 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-25 17:44:35 +0100
commit12252d3e85c22c6f17459f0a0cd79b873d74c77a (patch)
tree04c592a19ccd338887755e00f65f344c775f51bc /pcr/python-bibtexparser
parent9b9d4187de9cd27619d62a9c5934c2ff2b464d9c (diff)
downloadabslibre-12252d3e85c22c6f17459f0a0cd79b873d74c77a.tar.gz
abslibre-12252d3e85c22c6f17459f0a0cd79b873d74c77a.tar.bz2
abslibre-12252d3e85c22c6f17459f0a0cd79b873d74c77a.zip
pcr/python-bibtexparser: updated to 1.1.0
Diffstat (limited to 'pcr/python-bibtexparser')
-rw-r--r--pcr/python-bibtexparser/PKGBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/pcr/python-bibtexparser/PKGBUILD b/pcr/python-bibtexparser/PKGBUILD
index 52a8b8aa2..fad63152a 100644
--- a/pcr/python-bibtexparser/PKGBUILD
+++ b/pcr/python-bibtexparser/PKGBUILD
@@ -1,22 +1,25 @@
+# Maintainer: Andreas Grapentin <oaken-source@parabola.nu>
_pkgname=bibtexparser
-pkgname=(python-$_pkgname python2-$_pkgname)
-pkgver=1.0.1
-pkgrel=2
+pkgname=(python{,2}-$_pkgname)
+pkgver=1.1.0
+pkgrel=1
pkgdesc="Bibtex parser in Python"
-arch=('any')
+arch=(any)
url="https://pypi.python.org/pypi/$_pkgname"
license=('LGPL3')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=(https://pypi.python.org/packages/35/71/209bae42db6cc230ffd126dbda7ec057dd69a084acb4ddcd9ab4544c4506/$_pkgname-$pkgver.tar.gz)
-sha256sums=('cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a')
-_package(){
- depends=($1 $1-future $1-pyparsing)
+_depends=(future pyparsing)
+makedepends=(python{,2}-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('208b5e7641a188dd0d8c44e3ee1589e9')
+
+_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