summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarcy Hu2019-03-12 16:43:01 +0800
committerDarcy Hu2019-03-12 16:43:01 +0800
commit2c923dc2f2edc7fa45731fb20287ae1952c0f953 (patch)
tree3048f561b1ca50820d11acc841b8c36f36af86f6
downloadaur-python-gluonnlp.tar.gz
First commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2ec19cd95f6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-gluonnlp
+ pkgdesc = A toolkit for Natural Language Processing (NLP) research
+ pkgver = 0.5.0
+ pkgrel = 1
+ url = https://gluon-cv.mxnet.io
+ arch = any
+ license = Apache
+ checkdepends = python-nose
+ checkdepends = python-pytest
+ checkdepends = python-scipy
+ makedepends = python-setuptools
+ depends = mxnet
+ depends = python-numpy
+ depends = python-scipy
+ optdepends = python-jieba
+ optdepends = python-nltk
+ source = gluon-nlp-0.5.0.tar.gz::https://github.com/dmlc/gluon-nlp/archive/v0.5.0.tar.gz
+ sha512sums = 10f81405ae1e00f2c0f59e347a14daf8a9a1860601e687b1e0342f984b61767170c089b392ea2a454aaf1a544600a2fe3f3eb90f6b534a6fd29dfe2040a4f280
+
+pkgname = python-gluonnlp
+
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
+}