summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD42
-rw-r--r--mosesdecoder.install6
-rw-r--r--mosesdecoder.sh1
4 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..26a4ab67e09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = mosesdecoder-git
+ pkgdesc = State of the art Statistical Machine Translation system
+ pkgver = mmt.mvp.v0.12.1.r95.160a7f2
+ pkgrel = 1
+ url = http://www.statmt.org/moses
+ install = mosesdecoder.install
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = gcc
+ makedepends = boost>=1.48
+ makedepends = zlib
+ makedepends = git
+ makedepends = libtool
+ makedepends = boost-libs
+ makedepends = cmph
+ depends = python2
+ depends = xmlrpc-c
+ optdepends = giza-pp-git: for training models
+ optdepends = mgiza: multithreaded giza for training models
+ provides = mosesdecoder
+ conflicts = mosesdecoder
+ source = mosesdecoder::git+https://github.com/moses-smt/mosesdecoder.git
+ source = mosesdecoder.sh
+ md5sums = SKIP
+ md5sums = 888ae605a7b0a816005d44923b523016
+
+pkgname = mosesdecoder-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..61a7fd1e3be
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Panos Kanavos <panoskanavos@gmail.com>
+_pkgname=mosesdecoder
+pkgname=mosesdecoder-git
+pkgver=mmt.mvp.v0.12.1.r95.160a7f2
+pkgrel=1
+pkgdesc="State of the art Statistical Machine Translation system"
+arch=('i686' 'x86_64')
+url="http://www.statmt.org/moses"
+license=('LGPL')
+groups=()
+depends=('python2' 'xmlrpc-c')
+makedepends=('gcc' 'boost>=1.48' 'zlib' 'git' 'libtool' 'boost-libs' 'cmph')
+optdepends=('giza-pp-git: for training models' 'mgiza: multithreaded giza for training models')
+provides=('mosesdecoder')
+conflicts=('mosesdecoder')
+replaces=()
+backup=()
+options=()
+install='mosesdecoder.install'
+source=("$_pkgname::git+https://github.com/moses-smt/mosesdecoder.git" "mosesdecoder.sh")
+noextract=()
+md5sums=('SKIP' '888ae605a7b0a816005d44923b523016')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+
+package() {
+ cd "$_pkgname"
+
+ ./bjam --prefix=$pkgdir/opt/moses debug-symbols=off \
+ --with-xmlrpc-c \
+ --with-cmph=/usr \
+ --install-scripts=$pkgdir/opt/moses/moses-scripts \
+ -j4 -q
+ mkdir -p $pkgdir/etc/profile.d/
+ install -m755 $startdir/mosesdecoder.sh $pkgdir/etc/profile.d/
+ source $pkgdir/etc/profile.d/mosesdecoder.sh
+}
+
diff --git a/mosesdecoder.install b/mosesdecoder.install
new file mode 100644
index 00000000000..1f5834a8598
--- /dev/null
+++ b/mosesdecoder.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo ""
+ echo "It is highly recommended to export the scripts directory by adding this"
+ echo "to your bashrc: \"export SCRIPTS_ROOTDIR=/opt/moses/moses-scripts\""
+ echo ""
+} \ No newline at end of file
diff --git a/mosesdecoder.sh b/mosesdecoder.sh
new file mode 100644
index 00000000000..4ae379b30a8
--- /dev/null
+++ b/mosesdecoder.sh
@@ -0,0 +1 @@
+export PATH=$PATH:/opt/moses/bin \ No newline at end of file