wok-next rev 4890
Add: speech-dispatcher
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Feb 06 11:38:05 2010 +0000 (2010-02-06) |
parents | 94a6af24a504 |
children | 4966a9f6f207 |
files | speech-dispatcher/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/speech-dispatcher/receipt Sat Feb 06 11:38:05 2010 +0000 1.3 @@ -0,0 +1,56 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="speech-dispatcher" 1.7 +VERSION="0.6.7" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="Common interface to speech synthesis." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="glib alsa-lib espeak dotconf python" 1.12 +BUILD_DEPENDS="glib-dev pkg-config alsa-lib-dev dotconf-dev python 1.13 +python-dev espeak-dev sed espeak dotconf" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://www.freebsoft.org/speechd" 1.16 +WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + 1.22 + # tiny patches and fixes 1.23 + cd $src/src/python/speechd_config 1.24 + sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py 1.25 + sed -i 's/6561/6560/g' config.py 1.26 + cd ../ 1.27 + sed -i '/speechd_config\/test.wav/d' Makefile.in 1.28 + sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in 1.29 + cd ../../ 1.30 + 1.31 + ./configure \ 1.32 + --prefix=/usr \ 1.33 + --infodir=/usr/share/info \ 1.34 + --mandir=/usr/share/man \ 1.35 + --sysconfdir=/etc \ 1.36 + --with-espeak \ 1.37 + $CONFIGURE_ARGS && 1.38 + make && make DESTDIR=$PWD/_pkg install 1.39 +} 1.40 + 1.41 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 +genpkg_rules() 1.43 +{ 1.44 + mkdir -p $fs/usr/share/sounds/speech-dispatcher 1.45 + cp -a $_pkg/usr/bin $fs/usr 1.46 + cp -a $_pkg/etc $fs 1.47 + cp -a $_pkg/usr/lib $fs/usr 1.48 + cp -a $_pkg/usr/share $fs/usr 1.49 + 1.50 + # copy python stuff 1.51 + cp -a $src/src/python/_pkg/usr $fs 1.52 + cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher 1.53 + 1.54 + # remove unneeded libs 1.55 + rm -rf $fs/usr/share/info 1.56 + rm -rf $fs/usr/lib/*.*a 1.57 + rm -rf $fs/usr/lib/speech-dispatcher/*.*a 1.58 +} 1.59 +