#!/bin/sh # Heavily based on the Slackware 13.0 SlackBuild # http://www.cstr.ed.ac.uk/projects/festival/ # Packager Andrea Sciucca ( gohanz at infinito.it) # http://www.slacky.it # Required: Festival, Speech_tools CWD=`pwd` TMP=${TMP:-/tmp/txz} NAME=festvox_ellpc PKG=$TMP/package/$NAME VERSION=11k ARCH=${ARCH:-x86} BUILD=2as if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP mkdir -p $PKG/usr/share ( cd $PKG/usr/share tar xvzf $CWD/$NAME$VERSION.tar.gz ) echo -e "\E[0;32m+------------------------------------+\E[0;0m" echo -e "\E[0;32m| Start SlackBuild $NAME-$VERSION |\E[0;0m" echo -e "\E[0;32m+------------------------------------+\E[0;0m" mkdir -p $PKG/usr/doc/festival_spanish-$VERSION/SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/festival_spanish-$VERSION/SlackBuild/slack-desc cat $CWD/festival_spanish.SlackBuild > $PKG/usr/doc/festival_spanish-$VERSION/SlackBuild/$NAME.SlackBuild cd $PKG chown -R root:root . requiredbuilder -y -v -s $CWD $PKG makepkg -l y -c n $CWD/festival_spanish-$VERSION-$ARCH-$BUILD.txz if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi