summaryrefslogtreecommitdiff
path: root/pcr/python-habanero/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-03-05 13:29:08 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-03-05 13:29:34 +0100
commitf33401dbca698b90b3e567f8fbb7a6a1a12b6173 (patch)
tree12eeba48b0dea4e6cead2b72006a96fb7cb3d2ed /pcr/python-habanero/PKGBUILD
parent7ecfe3c9184e9abc3a2d9118190af415f95f8b50 (diff)
downloadabslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.gz
abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.bz2
abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.zip
pcr/papis: added, plus dependencies
Diffstat (limited to 'pcr/python-habanero/PKGBUILD')
-rw-r--r--pcr/python-habanero/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/python-habanero/PKGBUILD b/pcr/python-habanero/PKGBUILD
new file mode 100644
index 000000000..5cba17135
--- /dev/null
+++ b/pcr/python-habanero/PKGBUILD
@@ -0,0 +1,25 @@
+
+_pkgname=habanero
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="Low Level Client for Crossref Search API"
+arch=('any')
+url="https://pypi.python.org/pypi/$_pkgname"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/6a/48/3396b520da48fa7d645d29ce1de6ca706fa9f4ce37a3ea5019e1f7662cac/$_pkgname-$pkgver.tar.gz"
+ "Changelog.rst")
+sha256sums=('cd83f633c2fc0bfc3d20dd3c5852c84056230d119eb3aba9b94b03e423875788'
+ '25c8c42d3c714c371db0148f91a90140a2f6e7250a5a896a27e6632b11091776')
+
+_package(){
+ depends=($1)
+ cd "$srcdir"/$_pkgname-$pkgver
+ cp "$srcdir"/Changelog.rst .
+ $1 setup.py install --root="$pkgdir"
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done