### this file is sourced not run
PKGVER=1.06
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=flite+hts_engine-$PKGVER.tar.gz
MD5SUM=c2eed681c84c67684a071bbfdb30d7f0
SRC_URL=http://downloads.sourceforge.net/hts-engine/$TARBALL
BUNDLE=

SLACKREQ='hts-voice-us' # libhts-engine build-time only
SLACKDESC="flite-hts: flite-hts $PKGVER (Speech Synthesizer)  
flite-hts:  
flite-hts: Flite-hts is a command-line speech synthensizer based on 
flite-hts: Festival-lite using HTS engine.  
flite-hts: 
flite-hts: 
flite-hts: 
flite-hts: 
flite-hts: 
flite-hts: 
flite-hts: http://hts-engine.sourceforge.net/ 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/flite* &&
	# enable stdout, raw, continous output
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/flite-1.05-james.patch
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --with-hts-engine-header-path=/usr/include
	                      --with-hts-engine-library-path=/usr/lib64"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	# don't need all these devel libraries.
	rm -f /usr/lib64/libflhtse.a /usr/include/flite_hts_engine.h 
}


