Add /usr/lib/fst to ld.so.conf and fix python option.

This commit is contained in:
buggs 2015-07-30 20:53:06 +02:00
parent 66a8bb1ad0
commit 4171df2b5e
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = openfst pkgbase = openfst
pkgdesc = Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs) pkgdesc = Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)
pkgver = 1.5.0 pkgver = 1.5.0
pkgrel = 1 pkgrel = 2
url = http://www.openfst.org/ url = http://www.openfst.org/
arch = i686 arch = i686
arch = x86_64 arch = x86_64

View File

@ -1,8 +1,9 @@
# Maintainer: Christoph Drexler <chrdr at gmx dot at> # Maintainer: Andreas Hauser <andy-aur@splashground.de>
# Former Maintainer: Christoph Drexler <chrdr at gmx dot at>
pkgname=openfst pkgname=openfst
pkgver=1.5.0 pkgver=1.5.0
pkgrel=1 pkgrel=2
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)" pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.openfst.org/" url="http://www.openfst.org/"
@ -28,7 +29,7 @@ build() {
OPTIONS+=" --enable-mpdt" # Enable MPDT extensions; Default: no OPTIONS+=" --enable-mpdt" # Enable MPDT extensions; Default: no
OPTIONS+=" --enable-ngram-fsts" # Enable NGramFst extensions; Default: no OPTIONS+=" --enable-ngram-fsts" # Enable NGramFst extensions; Default: no
OPTIONS+=" --enable-pdt" # Enable PDT extensions; Default: no OPTIONS+=" --enable-pdt" # Enable PDT extensions; Default: no
OPTIONS+=" --enable-python" # Enable Python extensions; Default: no OPTIONS+=" --enable-python PYTHON=python2" # Enable Python extensions; Default: no
LIBS="-ldl" ./configure $OPTIONS LIBS="-ldl" ./configure $OPTIONS
make make
} }
@ -36,4 +37,7 @@ build() {
package() { package() {
cd ${srcdir}/${pkgname}-${pkgver} cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install
install -dm755 "$pkgdir"/etc/ld.so.conf.d/
echo '/usr/lib/fst' > "$pkgdir"/etc/ld.so.conf.d/openfst.conf
} }