diff options
author | panosk | 2015-10-03 00:50:48 +0300 |
---|---|---|
committer | panosk | 2015-10-03 00:50:48 +0300 |
commit | 36213c4af949b62ada6c4f140518f974c4880d76 (patch) | |
tree | b557a3b99b4c1999b8dfa2c267d7920427ac00bc | |
download | aur-36213c4af949b62ada6c4f140518f974c4880d76.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | mosesdecoder.install | 6 | ||||
-rw-r--r-- | mosesdecoder.sh | 1 |
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d1f8ccd27855 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = mosesdecoder + pkgdesc = State of the art Statistical Machine Translation system - Stable Release 3 + pkgver = 3.0.0 + 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: for training models + optdepends = mgiza: multithreaded giza for training models + source = mosesdecoder::git+https://github.com/moses-smt/mosesdecoder.git#branch=RELEASE-3.0 + source = mosesdecoder.sh + md5sums = SKIP + md5sums = 888ae605a7b0a816005d44923b523016 + +pkgname = mosesdecoder + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d0110bf1593c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Panos Kanavos <panoskanavos@gmail.com> +pkgname=mosesdecoder +pkgver=3.0.0 +pkgrel=1 +pkgdesc="State of the art Statistical Machine Translation system - Stable Release 3" +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: for training models' 'mgiza: multithreaded giza for training models') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install='mosesdecoder.install' +source=('mosesdecoder::git+https://github.com/moses-smt/mosesdecoder.git#branch=RELEASE-3.0' 'mosesdecoder.sh') +noextract=() +md5sums=('SKIP' '888ae605a7b0a816005d44923b523016') + +package() { + cd "$pkgname" + + ./bjam --prefix=$pkgdir/opt/moses debug-symbols=off \ + --with-xmlrpc-c \ + --with-cmph=/usr \ + --install-scripts=$pkgdir/opt/moses/moses-scripts \ + -j2 + 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 000000000000..1f5834a8598d --- /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 000000000000..4ae379b30a80 --- /dev/null +++ b/mosesdecoder.sh @@ -0,0 +1 @@ +export PATH=$PATH:/opt/moses/bin
\ No newline at end of file |