summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicoHood2018-07-31 16:29:25 +0200
committerNicoHood2018-07-31 16:29:25 +0200
commitdd2a5890df748f4ddcbaa35155728c044fc2c52b (patch)
tree77260f03051c0371e7eb4517eb5de66287ac8fa7
downloadaur-python-duckling.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD35
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e493f3b1599
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = python-duckling
+ pkgdesc = Python wrapper for wit.ai's Duckling Clojure library
+ pkgver = 1.8.0
+ pkgrel = 1
+ url = https://github.com/FraBle/python-duckling
+ arch = any
+ license = APACHE
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ source = python-duckling-1.8.0.tar.gz::https://github.com/FraBle/python-duckling/archive/v1.8.0.tar.gz
+ sha512sums = 9aa59d55cd546b977d86987c68676d3ed38d2a902d74bd67960c23e5f8d4a41e893f3ef495d15862a9b18cc839a1fce07f490caa96c5a3f6a86ffcf4e69f27fa
+
+pkgname = python-duckling
+ depends = python
+ depends = java-environment
+ depends = python-jpype1
+
+pkgname = python2-duckling
+ depends = python2
+ depends = java-environment
+ depends = python2-jpype1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6cc30aa52d1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+
+_pkgname=python-duckling
+pkgbase=python-duckling
+pkgname=('python-duckling' 'python2-duckling')
+pkgdesc="Python wrapper for wit.ai's Duckling Clojure library"
+pkgver=1.8.0
+pkgrel=1
+url="https://github.com/FraBle/python-duckling"
+license=('APACHE')
+arch=("any")
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/FraBle/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('9aa59d55cd546b977d86987c68676d3ed38d2a902d74bd67960c23e5f8d4a41e893f3ef495d15862a9b18cc839a1fce07f490caa96c5a3f6a86ffcf4e69f27fa')
+#validpgpkeys=('') # TODO
+
+prepare() {
+ # Create a copy for the python2 package
+ cp -r "${_pkgname}-${pkgver}" "python2-${_pkgname}-${pkgver}"
+}
+
+package_python-duckling() {
+ depends=('python' 'java-environment' 'python-jpype1')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-duckling() {
+ depends=('python2' 'java-environment' 'python2-jpype1')
+
+ cd "${srcdir}/python2-${_pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}