Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
591
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Changes by: Kilian Gebhardt <gebhardtkilian at gmail dot com>
  2. # Maintainer: Andreas Hauser <andy-aur@splashground.de>
  3. # Former Maintainer: Christoph Drexler <chrdr at gmx dot at>
  4.  
  5. pkgname=openfst
  6. pkgver=1.6.2
  7. pkgrel=1
  8. pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
  9. arch=('i686' 'x86_64')
  10. url="http://www.openfst.org/"
  11. license=('APACHE')
  12. depends=('gcc-libs' 'glibc' 'python2')
  13. options=(!libtool)
  14. source=("http://www.openfst.org/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
  15. sha1sums=('632c2510c166bc66e44804de90ebb430f67bd195')
  16.  
  17.  
  18. build() {
  19. cd ${srcdir}/${pkgname}-${pkgver}
  20.  
  21. # Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
  22. OPTIONS="--prefix=/usr --disable-dependency-tracking"
  23. OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
  24. OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
  25. OPTIONS+=" --enable-compress" # Enable compression extension; Default: no
  26. OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
  27. OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
  28. OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
  29. OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
  30. OPTIONS+=" --enable-mpdt" # Enable MPDT extensions; Default: no
  31. OPTIONS+=" --enable-ngram-fsts" # Enable NGramFst extensions; Default: no
  32. OPTIONS+=" --enable-pdt" # Enable PDT extensions; Default: no
  33. OPTIONS+=" --enable-python PYTHON=python2" # Enable Python extensions; Default: no
  34. LIBS="-ldl" ./configure $OPTIONS
  35. make
  36. }
  37.  
  38. package() {
  39. cd ${srcdir}/${pkgname}-${pkgver}
  40. make DESTDIR=${pkgdir} install
  41.  
  42. install -dm755 "$pkgdir"/etc/ld.so.conf.d/
  43. echo '/usr/lib/fst' > "$pkgdir"/etc/ld.so.conf.d/openfst.conf
  44. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement