From 66a8bb1ad0f3d191be4c937ebf18fe469e809b2f Mon Sep 17 00:00:00 2001 From: Christoph Drexler Date: Wed, 22 Jul 2015 21:26:42 +0200 Subject: [PATCH] Initial import --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..3c995ca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = openfst + pkgdesc = Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs) + pkgver = 1.5.0 + pkgrel = 1 + url = http://www.openfst.org/ + arch = i686 + arch = x86_64 + license = APACHE + depends = gcc-libs + depends = glibc + depends = python2 + options = !libtool + source = http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.5.0.tar.gz + sha256sums = 01c2b810295a942fede5b711bd04bdc9677855c846fedcc999c792604e02177b + +pkgname = openfst + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7e982f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Christoph Drexler + +pkgname=openfst +pkgver=1.5.0 +pkgrel=1 +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) +source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz") +sha256sums=('01c2b810295a942fede5b711bd04bdc9677855c846fedcc999c792604e02177b') + + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # 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" # Enable Python extensions; Default: no + LIBS="-ldl" ./configure $OPTIONS + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +}