# festival, http://www.cstr.ed.ac.uk/projects/festival/ name=festival version=1.95 release=1 source=(http://www.cstr.ed.ac.uk/downloads/$name/$version/$name-$version-beta.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festlex_CMU.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festlex_OALD.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festlex_POSLEX.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_don.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_ellpc11k.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_kallpc16k.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_kedlpc16k.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_rablpc16k.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_us1.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_us2.tar.gz \ http://www.cstr.ed.ac.uk/downloads/$name/$version/festvox_us3.tar.gz \ http://www.cstr.ed.ac.uk/downloads/festival/1.95/speech_tools-1.2.95-beta.tar.gz) build() { # create directory hierarchies mkdir -p $PKG/usr/bin \ $PKG/usr/man/man1 \ $PKG/usr/include/{festival,EST} \ $PKG/usr/share/festival \ $PKG/usr/share/speech_tools \ $PKG/usr/lib # configure & compile speech_tools cd speech_tools ./configure --prefix=/usr make # install speech_tools mkdir -p $PKG/usr/share/speech_tools/{bin,siod,stats/wagon} mkdir -p $PKG/usr/share/speech_tools/grammar/{scfg,wfst} cp -a include/* $PKG/usr/include/EST cp -a config $PKG/usr/share/speech_tools install siod/siod.mak $PKG/usr/share/speech_tools/siod install lib/siod/*.scm $PKG/usr/share/speech_tools/siod install stats/ols.mak $PKG/usr/share/speech_tools/stats install stats/wagon/wagon.mak $PKG/usr/share/speech_tools/stats/wagon install grammar/scfg/scfg.mak $PKG/usr/share/speech_tools/grammar/scfg install grammar/wfst/wfst.mak $PKG/usr/share/speech_tools/grammar/wfst install -m 755 lib/lib* $PKG/usr/lib install `find bin -type f -perm +1` $PKG/usr/share/speech_tools/bin for file in `find $PKG/usr/include/EST -type f`; do sed -i -e 's/\"\(.*h\)\"/\/g' $file done sed -i -e 's/\