diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:40:56 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:44:34 +0100 |
commit | 9b9d4187de9cd27619d62a9c5934c2ff2b464d9c (patch) | |
tree | 019ace031f652e786d2f5ee88513cec1f8675b3c /pcr/python-arxiv2bib | |
parent | 3991403c0e7e43f6c6ad8fbd18e13441a3508290 (diff) | |
download | abslibre-9b9d4187de9cd27619d62a9c5934c2ff2b464d9c.tar.gz abslibre-9b9d4187de9cd27619d62a9c5934c2ff2b464d9c.tar.bz2 abslibre-9b9d4187de9cd27619d62a9c5934c2ff2b464d9c.zip |
pcr/python-arxiv2bib: moved from pcr/arxiv2bib and updated
Diffstat (limited to 'pcr/python-arxiv2bib')
-rw-r--r-- | pcr/python-arxiv2bib/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/python-arxiv2bib/PKGBUILD b/pcr/python-arxiv2bib/PKGBUILD new file mode 100644 index 000000000..8fe774588 --- /dev/null +++ b/pcr/python-arxiv2bib/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> + +_pkgname=arxiv2bib +pkgname=(python{,2}-$_pkgname) +pkgver=1.0.8 +pkgrel=3 +pkgdesc="Get arXiv.org metadata in BibTeX format" +arch=(any) +url="https://pypi.python.org/pypi/$pkgname" +license=('BSD3') + +_depends=() +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +sha256sums=('137608ed8aa4da6594350152964b9b0f46c6efcb07f8a4dfd50309c968b647a8') + +_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%%-*}; }" +done |