summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dedc1d1b2b7a07263d060441948cc1e741c392e0 (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
28
29
30
31
32
# Contributor: sikfeng <sikfeng at gmail dot com>
pkgname=carmel-git
pkgver=forest.em.19.r2154.g03cd860f
pkgrel=1
pkgdesc="finite-state toolkit, EM and Bayesian (Gibbs sampling) training for FST and context-free derivation forests"
arch=("i686" "x86_64")
url="https://github.com/isi-nlp/carmel"
license=("Apache")
depends=("boost")
makedepends=("cmake" "git")
optdepends=("openfst")
provides=("carmel=$pkgver")
source=("$pkgname::git+https://github.com/isi-nlp/carmel.git#branch=master")
md5sums=("SKIP")

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -r "s/([^-]*-g)/r\1/;s/-/./g"
}

build() {
  cd $pkgname
  mkdir -p build; cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd $pkgname/build
  make install DESTDIR="$pkgdir"
}