# Pacakaged by Didier Spaier pkgname=$(pwd|sed "s,.*/,,") pkgver=$(echo ${pkgname}-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev) pkgrel=1slint source=("$(echo ${pkgname}-*.tar.?z*)" "flite-ldflags-fix.patch") docs=("copying" "ACKNOWLEDGEMENTS" "README.md" "flite.pdf" "alice" "README.html" "README.Slint") options=("nosrcpack") # url=http://cmuflite.org # Built from git: https://github.com/festvox/flite # Run make-git-tarball.sh first if you want to (possibly) upgrade. slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a lightweight speech synthesis engine)" "Flite is a small and fast run-time synthesis engine designed for" "embedded systems and servers. Flite was developed by Alan W Black" "and Kevin Lenzo at Carnegie Mellon University, in Pittsburgh." "Flite is designed as an alternative text to speech synthesis engine to" "Festival for voices built using the FestVox suite of voice building" "tools." ) build() { cd $SRC/$pkgname-$pkgver || return 1 # fix LDLAGS to allow external programs to find libflite.so patch -p1 --verbose < $SRC/flite-ldflags-fix.patch sed '/$(INSTALL) -m 755 $(BINDIR)\/flite_time $(DESTDIR)$(INSTALLBINDIR)/d' main/Makefile > bof mv bof main/Makefile ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-shared \ --with-audio=alsa \ --datarootdir=/usr \ --docdir=/usr/doc/$pkgname-$pkgver \ --htmldir=/usr/doc/$pkgname-$pkgver/html \ --mandir=/usr/man \ --build=$ARCH-slackware-linux make (cd doc && make flite.pdf) mkdir -p $PKG/usr/doc/$pkgname-$pkgver pandoc README.md -o README.html DESTDIR=$PKG make install rm -rf $PKG/usr/lib$LIBDIRSUFFIX/*.a }