From 12252d3e85c22c6f17459f0a0cd79b873d74c77a Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 25 Feb 2019 17:41:09 +0100 Subject: pcr/python-bibtexparser: updated to 1.1.0 --- pcr/python-bibtexparser/PKGBUILD | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'pcr/python-bibtexparser') 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 _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 -- cgit v1.2.3