summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3908123518e4e244072cd3b7f8a835691ef8710b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Panos Kanavos <panoskanavos@gmail.com>
pkgname=mgiza
pkgver=3.0
pkgrel=1
pkgdesc='Multithreaded version of Giza, a statistical machine translation toolkit used to train word alignment models'
arch=('i686' 'x86_64')
url='https://github.com/moses-smt/mgiza'
license=('GPL2')
makedepends=(gcc cmake boost boost-libs)
depends=("python" "bash")
conflicts=("mgiza-git" "giza-pp-git")
provides=("giza")
install=
source=("$pkgname::git+https://github.com/moses-smt/$pkgname.git#branch=RELEASE-$pkgver")
md5sums=('SKIP')

build() {
  cd "$srcdir/$pkgname/mgizapp"
  cmake -DCMAKE_INSTALL_PREFIX=/opt/mgiza
  make
}

package() {
  cd "$srcdir/$pkgname/mgizapp"
  make DESTDIR="$pkgdir/" install
  chmod a+rx $pkgdir/opt/$pkgname/scripts/*
}