2017-06-16 12:04:29 +02:00
|
|
|
# Maintainer: Jean Lucas <jean@4ray.co>
|
|
|
|
# Contributor: Kilian Gebhardt <gebhardtkilian at gmail dot com>
|
|
|
|
# Contributor: Andreas Hauser <andy-aur@splashground.de>
|
|
|
|
# Contributor: Christoph Drexler <chrdr at gmx dot at>
|
2015-07-22 21:26:42 +02:00
|
|
|
|
|
|
|
pkgname=openfst
|
2020-04-26 06:43:43 +02:00
|
|
|
pkgver=1.7.6
|
2018-04-01 10:03:20 +02:00
|
|
|
pkgrel=1
|
2018-01-31 11:21:59 +01:00
|
|
|
pkgdesc='Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)'
|
2017-12-09 14:34:26 +01:00
|
|
|
arch=(i686 x86_64)
|
2018-01-31 11:21:59 +01:00
|
|
|
url='http://www.openfst.org'
|
2017-12-09 14:34:26 +01:00
|
|
|
license=(Apache)
|
2020-04-26 06:43:43 +02:00
|
|
|
depends=(gcc-libs glibc python)
|
2015-07-22 21:26:42 +02:00
|
|
|
options=(!libtool)
|
2017-12-09 14:34:26 +01:00
|
|
|
source=(http://www.openfst.org/twiki/pub/FST/FstDownload/$pkgname-$pkgver.tar.gz)
|
2020-04-26 06:43:43 +02:00
|
|
|
sha1sums=(3fb669b7c064c83f7768d9089b2914a782890474)
|
2015-07-22 21:26:42 +02:00
|
|
|
|
|
|
|
build() {
|
2017-12-09 14:34:26 +01:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2015-07-22 21:26:42 +02:00
|
|
|
|
2017-06-16 12:04:29 +02:00
|
|
|
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
|
2018-01-31 11:21:59 +01:00
|
|
|
OPTIONS='--prefix=/usr --disable-dependency-tracking'
|
2018-02-11 12:52:44 +01:00
|
|
|
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
|
2020-04-26 06:43:43 +02:00
|
|
|
OPTIONS+=' --enable-python PYTHON=python' # Enable Python extensions; Default: no
|
|
|
|
LIBS='-ldl' ./configure $OPTIONS
|
2017-12-09 14:34:26 +01:00
|
|
|
|
2017-06-16 12:04:29 +02:00
|
|
|
make
|
2015-07-22 21:26:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-12-09 14:34:26 +01:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
2015-07-30 20:53:06 +02:00
|
|
|
|
2017-12-09 14:34:26 +01:00
|
|
|
install -d $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
|
|
|
}
|