openfst/PKGBUILD

44 lines
2.1 KiB
Bash
Raw Normal View History

# Maintainer: Andreas Hauser <andy-aur@splashground.de>
# Former Maintainer: Christoph Drexler <chrdr at gmx dot at>
2015-07-22 21:26:42 +02:00
pkgname=openfst
2016-10-30 00:43:21 +02:00
pkgver=1.5.4.1
2016-02-19 13:25:27 +01:00
pkgrel=1
2015-07-22 21:26:42 +02:00
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64')
url="http://www.openfst.org/"
license=('APACHE')
depends=('gcc-libs' 'glibc' 'python2')
options=(!libtool)
2016-02-24 12:44:55 +01:00
source=("http://openfst.cs.nyu.edu/twiki/bin/viewfile/FST/FstDownload?filename=${pkgname}-${pkgver/%.?/}.tar.gz;rev=${pkgver/*./}")
2016-10-30 00:43:21 +02:00
sha256sums=('acc115aaaa33de53de62dae44120ab368fabaea06f52606b77714081ecd32657')
2015-07-22 21:26:42 +02:00
build() {
2016-02-24 12:44:55 +01:00
cd ${srcdir}/${pkgname}-${pkgver/%.?/}
2015-07-22 21:26:42 +02:00
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
OPTIONS="--prefix=/usr --disable-dependency-tracking"
OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
OPTIONS+=" --enable-compress" # Enable compression extension; Default: no
OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
OPTIONS+=" --enable-mpdt" # Enable MPDT extensions; Default: no
OPTIONS+=" --enable-ngram-fsts" # Enable NGramFst extensions; Default: no
OPTIONS+=" --enable-pdt" # Enable PDT extensions; Default: no
OPTIONS+=" --enable-python PYTHON=python2" # Enable Python extensions; Default: no
2015-07-22 21:26:42 +02:00
LIBS="-ldl" ./configure $OPTIONS
make
}
package() {
2016-02-24 12:44:55 +01:00
cd ${srcdir}/${pkgname}-${pkgver/%.?/}
2015-07-22 21:26:42 +02:00
make DESTDIR=${pkgdir} install
install -dm755 "$pkgdir"/etc/ld.so.conf.d/
echo '/usr/lib/fst' > "$pkgdir"/etc/ld.so.conf.d/openfst.conf
2015-07-22 21:26:42 +02:00
}