summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e18a659343a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+pkgname=python-gluonnlp
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='A toolkit for Natural Language Processing (NLP) research'
+arch=(any)
+url=https://gluon-cv.mxnet.io
+license=('Apache')
+depends=(mxnet python-numpy python-scipy)
+makedepends=(python-setuptools)
+checkdepends=(python-nose python-pytest python-scipy)
+optdepends=(python-jieba python-nltk)
+source=("gluon-nlp-$pkgver.tar.gz"::"https://github.com/dmlc/gluon-nlp/archive/v$pkgver.tar.gz")
+sha512sums=('10f81405ae1e00f2c0f59e347a14daf8a9a1860601e687b1e0342f984b61767170c089b392ea2a454aaf1a544600a2fe3f3eb90f6b534a6fd29dfe2040a4f280')
+
+build() {
+ cd gluon-nlp-$pkgver
+ python setup.py build
+}
+
+#check() {
+# cd gluon-nlp-$pkgver
+# pytest -v
+#}
+
+package() {
+ cd gluon-nlp-$pkgver
+ python setup.py install --root=$pkgdir --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}