summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roest2021-03-11 13:56:55 +0100
committerVictor Roest2021-03-11 13:56:55 +0100
commit0baf6cff1aa8a534dcefd437bc12923bcc9eda12 (patch)
tree176ce90953d083d38893a0f6fae7a919da0a4f25
downloadaur-0baf6cff1aa8a534dcefd437bc12923bcc9eda12.tar.gz
Initial Commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD24
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bbe5981f650
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-crossrefapi
+ pkgdesc = Python Library that implements the endpoints of the Crossref API
+ pkgver = 1.5.0
+ pkgrel = 1
+ url = https://github.com/fabiobatalha/crossrefapi
+ arch = x86_64
+ license = BSD
+ depends = python-requests
+ source = https://files.pythonhosted.org/packages/source/c/crossrefapi/crossrefapi-1.5.0.tar.gz
+ sha512sums = d6c6250e1c009e1cc960236a11b6fee9c64fe990c8cd879eca52684702a202f14668774d9a9959dc10c7a958908b4e7977fca0d989479817c303da0aa4839fbe
+
+pkgname = python-crossrefapi
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..420d7f4e997
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Victor Roest <victor@xirion.net>
+pkgname=python-crossrefapi
+_name=${pkgname#python-}
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='Python Library that implements the endpoints of the Crossref API'
+arch=('x86_64')
+url='https://github.com/fabiobatalha/crossrefapi'
+license=('BSD')
+depends=('python-requests')
+source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha512sums=('d6c6250e1c009e1cc960236a11b6fee9c64fe990c8cd879eca52684702a202f14668774d9a9959dc10c7a958908b4e7977fca0d989479817c303da0aa4839fbe')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+