summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNOGISAKA Sadata2015-06-09 22:56:45 +0900
committerNOGISAKA Sadata2015-06-09 22:56:45 +0900
commit11f9461cef187a55c6011b4ca2a317ae84c99256 (patch)
tree55cadc167499b47ac4283d84dd7dfe4d63dca89e
downloadaur-11f9461cef187a55c6011b4ca2a317ae84c99256.tar.gz
initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD43
-rw-r--r--maltparser.install7
-rw-r--r--maltparser.sh3
4 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..824457eff9e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = maltparser
+ pkgdesc = a data-driven parser generator for dependency parsing
+ pkgver = 1.8.1
+ pkgrel = 1
+ url = http://www.maltparser.org/
+ install = maltparser.install
+ arch = any
+ license = custom
+ depends = java-environment
+ source = http://maltparser.org/dist/maltparser-1.8.1.tar.gz
+ source = maltparser.install
+ source = maltparser.sh
+ sha1sums = 4451cb6d2da68b818b2e26d55fee1f1fb0717a42
+ sha1sums = 42f22d7ec89db686d7eb491b30061f892046fada
+ sha1sums = 73bfa1c9ff4f216a66088adba221843033a6b2bc
+
+pkgname = maltparser
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37b46a69c42
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: nosada <ngsksdt@gmail.com>
+# Contributor: mitsuse <mitsuset - gmail>
+
+pkgname=maltparser
+pkgver=1.8.1
+pkgrel=1
+pkgdesc="a data-driven parser generator for dependency parsing"
+arch=('any')
+url="http://www.maltparser.org/"
+license=('custom')
+depends=("java-environment")
+install=maltparser.install
+source=(
+ "http://maltparser.org/dist/maltparser-$pkgver.tar.gz"
+ "maltparser.install"
+ "maltparser.sh")
+sha1sums=('4451cb6d2da68b818b2e26d55fee1f1fb0717a42'
+ '42f22d7ec89db686d7eb491b30061f892046fada'
+ '73bfa1c9ff4f216a66088adba221843033a6b2bc')
+
+package() {
+ cd $srcdir
+ install -d $pkgdir/usr/bin
+ install -m755 maltparser.sh $pkgdir/usr/bin/maltparser
+
+ cd $srcdir/$pkgname-$pkgver
+ install -d $pkgdir/usr/share/java/maltparser/
+ install -d $pkgdir/usr/share/java/maltparser/lib/
+ install -d $pkgdir/usr/share/java/maltparser/example/data/
+ install -d $pkgdir/usr/share/licenses/maltparser/
+ install -m644 README $pkgdir/usr/share/java/maltparser/
+ install -m644 NOTICE $pkgdir/usr/share/java/maltparser/
+ install -m644 maltparser-$pkgver.jar $pkgdir/usr/share/java/maltparser/
+ install -m644 lib/*.jar $pkgdir/usr/share/java/maltparser/lib/
+ install -m644 examples/*.xml $pkgdir/usr/share/java/maltparser/example/
+ install -m644 examples/data/*.conll $pkgdir/usr/share/java/maltparser/example/data/
+ install -m644 LICENSE $pkgdir/usr/share/licenses/maltparser/
+
+ install -d $pkgdir/usr/share/doc/maltparser/
+ cp -r docs/* $pkgdir/usr/share/doc/maltparser/
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/maltparser.install b/maltparser.install
new file mode 100644
index 00000000000..7e801c6b748
--- /dev/null
+++ b/maltparser.install
@@ -0,0 +1,7 @@
+post_install() {
+ cat /usr/share/licenses/maltparser/LICENSE
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/maltparser.sh b/maltparser.sh
new file mode 100644
index 00000000000..655266351a5
--- /dev/null
+++ b/maltparser.sh
@@ -0,0 +1,3 @@
+#/bin/sh
+
+$JAVA_HOME/bin/java -jar /usr/share/java/maltparser/maltparser-1.8.jar $@