1 # Maintainer: Christoph Drexler <chrdr at gmx dot at>
6 pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
8 url="http://www.openfst.org/"
11 optdepends=('icu: for enabling unicode support')
13 source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('2c73dca4cbfe3850b9b7f6988249c870')
17 cd ${srcdir}/${pkgname}-${pkgver}
19 # Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
20 # using "--enable-far" together with "--with-icu" produces an error
21 OPTIONS="--prefix=/usr"
22 OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
23 OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
24 OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
25 OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
26 OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
27 OPTIONS+=" --enable-pdt" # Experimental push-down transducer extensions; Default: no
28 # OPTIONS+=" --with-icu" # Use ICU to provide unicode support; Default: no
29 LIBS="-ldl" ./configure $OPTIONS
34 cd ${srcdir}/${pkgname}-${pkgver}
35 make DESTDIR=${pkgdir} install