wok-6.x diff yasr/receipt @ rev 4891

Add: yasr
author Paul Issott <paul@slitaz.org>
date Sat Feb 06 18:07:44 2010 +0000 (2010-02-06)
parents
children c708dc566ed4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/yasr/receipt	Sat Feb 06 18:07:44 2010 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="yasr"
     1.7 +VERSION="0.6.9"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="General purpose console screen reader."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +DEPENDS="speech-dispatcher espeak"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://yasr.sourceforge.net/"
    1.14 +WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src/yasr
    1.20 +	patch -p0 < ../../stuff/yasr.patch || exit 1
    1.21 +	cd ../
    1.22 +	./configure \
    1.23 +		--prefix=/usr 
    1.24 +	make && make DESTDIR=$PWD/_pkg install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr/share
    1.31 +	cp -a $_pkg/usr/bin $fs/usr
    1.32 +	cp -a $_pkg/usr/share/yasr $fs/usr/share
    1.33 +
    1.34 +	# enable speech-synthesizer in config file
    1.35 +	cd $fs/usr/share/yasr
    1.36 +	sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
    1.37 +	s/#synthesizer=speech/synthesizer=speech/; \
    1.38 +	s/synthesizer port=|/#synthesizer port=|/; \
    1.39 +	s/#synthesizer port=127./synthesizer port=127./' yasr.conf	
    1.40 +}
    1.41 +