updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / openfst / PKGBUILD
blob120da1e74500b40b50d115fc086e5bff1fbfbe9e
1 # Maintainer: Christoph Drexler <chrdr at gmx dot at>
3 pkgname=openfst
4 pkgver=1.2.10
5 pkgrel=1
6 pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
7 arch=('i686' 'x86_64')
8 url="http://www.openfst.org/"
9 license=('APACHE')
10 depends=()
11 optdepends=('icu: for enabling unicode support')
12 options=(!libtool)
13 source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('2c73dca4cbfe3850b9b7f6988249c870')
16 build() {
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
30         make
33 package() {
34   cd ${srcdir}/${pkgname}-${pkgver}
35   make DESTDIR=${pkgdir} install