summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Schneider2016-12-28 12:50:12 +0100
committerSven Schneider2016-12-28 13:11:15 +0100
commite48b2467e7307e78a45f0d6f5ac555d6252eca63 (patch)
tree97bdd21a36746e334cf735cde06c46d8a6ff1220
downloadaur-e48b2467e7307e78a45f0d6f5ac555d6252eca63.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD45
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..56a821d5f06
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed Dec 28 12:10:29 UTC 2016
+pkgbase = python-pyld
+ pkgdesc = An implementation of the JSON-LD specification in Python
+ pkgver = 0.7.1
+ pkgrel = 1
+ url = https://github.com/digitalbazaar/pyld
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://github.com/digitalbazaar/pyld/archive/0.7.1.tar.gz
+ sha512sums = 1db8aa6523183df5b427580e2b2504c871769c2c7c4612f3b93b7509651f4fd0fb17a0d0ccf251135b908648e32b256d2de9e118161586393ad332c7d8ad4cad
+
+pkgname = python-pyld
+ depends = python-setuptools
+
+pkgname = python2-pyld
+ depends = python2-setuptools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ddf5b865565
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+pkgname=('python-pyld' 'python2-pyld')
+_pkgname='pyld'
+pkgver=0.7.1
+pkgrel=1
+pkgdesc="An implementation of the JSON-LD specification in Python"
+arch=('any')
+url="https://github.com/digitalbazaar/pyld"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(https://github.com/digitalbazaar/${_pkgname}/archive/${pkgver}.tar.gz)
+sha512sums=('1db8aa6523183df5b427580e2b2504c871769c2c7c4612f3b93b7509651f4fd0fb17a0d0ccf251135b908648e32b256d2de9e118161586393ad332c7d8ad4cad')
+
+prepare() {
+ cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${_pkgname}-${pkgver}-py2"
+ python2 setup.py build
+}
+
+package_python-pyld() {
+ depends=('python-setuptools')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ python3 setup.py install --root="${pkgdir}" -O1
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyld() {
+ depends=('python2-setuptools')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}-py2"
+
+ python2 setup.py install --root="${pkgdir}" -O1
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}