summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpanosk2015-10-04 17:10:38 +0300
committerpanosk2015-10-04 17:10:38 +0300
commit6a62cbd6df22c79369c20a281f322040f9febf1f (patch)
treee6303592193718c913e9ba910d9557078d3e0ae7 /PKGBUILD
downloadaur-mosesdecoder-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
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
+}
+