wok annotate speech-dispatcher/receipt @ rev 8309

Up: postgresql to 9.0.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 01 00:59:41 2011 +0000 (2011-02-01)
parents febcdac4b846
children e2cc0a6e47fe
rev   line source
paul@4890 1 # SliTaz package receipt.
paul@4890 2
paul@4890 3 PACKAGE="speech-dispatcher"
paul@4890 4 VERSION="0.6.7"
paul@4890 5 CATEGORY="utilities"
paul@4890 6 SHORT_DESC="Common interface to speech synthesis."
paul@4890 7 MAINTAINER="paul@slitaz.org"
paul@4893 8 DEPENDS="glib alsa-lib espeak dotconf python libsndfile"
paul@4890 9 BUILD_DEPENDS="glib-dev pkg-config alsa-lib-dev dotconf-dev python
paul@4890 10 python-dev espeak-dev sed espeak dotconf"
paul@4890 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@4890 12 WEB_SITE="http://www.freebsoft.org/speechd"
paul@4890 13 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL"
paul@4890 14
paul@4890 15 # Rules to configure and make the package.
paul@4890 16 compile_rules()
paul@4890 17 {
paul@4890 18
paul@4890 19 # tiny patches and fixes
paul@4890 20 cd $src/src/python/speechd_config
paul@4890 21 sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
paul@4890 22 sed -i 's/6561/6560/g' config.py
paul@4890 23 cd ../
paul@4890 24 sed -i '/speechd_config\/test.wav/d' Makefile.in
paul@4890 25 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
paul@4890 26 cd ../../
paul@4890 27
paul@4890 28 ./configure \
paul@4890 29 --prefix=/usr \
paul@4890 30 --infodir=/usr/share/info \
paul@4890 31 --mandir=/usr/share/man \
paul@4890 32 --sysconfdir=/etc \
paul@4890 33 --with-espeak \
paul@4890 34 $CONFIGURE_ARGS &&
paul@4890 35 make && make DESTDIR=$PWD/_pkg install
paul@4890 36 }
paul@4890 37
paul@4890 38 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4890 39 genpkg_rules()
paul@4890 40 {
paul@4890 41 mkdir -p $fs/usr/share/sounds/speech-dispatcher
paul@4890 42 cp -a $_pkg/usr/bin $fs/usr
paul@4890 43 cp -a $_pkg/etc $fs
paul@4890 44 cp -a $_pkg/usr/lib $fs/usr
paul@4890 45 cp -a $_pkg/usr/share $fs/usr
paul@4890 46
paul@4890 47 # copy python stuff
paul@4890 48 cp -a $src/src/python/_pkg/usr $fs
paul@4890 49 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
paul@4890 50
paul@4890 51 # remove unneeded libs
paul@4890 52 rm -rf $fs/usr/share/info
paul@4890 53 rm -rf $fs/usr/lib/*.*a
paul@4890 54 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
paul@4890 55 }
paul@4890 56