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

# source: james
TARBALL=espeak-$PKGVER.zip
MD5SUM=a933baef9cd6528f2e019e59582797bd
SRC_URL=http://espeak.sourceforge.net/test/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib libportaudio'
SLACKDESC="espeak: espeak $PKGVER (Speech synthesizer)  
espeak:  
espeak: Espeak is a speech synthesizer (aka text-to-speech); that is, it reads 
espeak: and convert text into speech waveforms. eSpeak uses a \"formant 
espeak: synthesis\" method. This allows many languages to be provided in a 
espeak: small size. The speech is clear, and can be used at high speeds, but 
espeak: is not as natural or smooth as larger synthesizers which are based on 
espeak: human speech recordings.  
espeak: 
espeak: 
espeak:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	unzip $SRC_DIR/$TARBALL -d tmp > /dev/null
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/espeak*
	cd src &&
	cp portaudio19.h portaudio.h &&
	sed -i -e 's|/bin/ln|ln|' Makefile &&
	make LIBDIR=/usr/lib64 &&
	make LIBDIR=/usr/lib64 install &&
	rm -f /usr/lib64/libespeak.a && # don't want the static lib
	pkg_build_slackdesc
}


