wok rev 7712

yasr: add post install
author Paul Issott <paul@slitaz.org>
date Sun Dec 19 15:51:06 2010 +0000 (2010-12-19)
parents 6ce472884aeb
children 84b5867a1370
files yasr/receipt
line diff
     1.1 --- a/yasr/receipt	Sun Dec 19 15:46:56 2010 +0000
     1.2 +++ b/yasr/receipt	Sun Dec 19 15:51:06 2010 +0000
     1.3 @@ -27,12 +27,17 @@
     1.4  	mkdir -p $fs/usr/share
     1.5  	cp -a $_pkg/usr/bin $fs/usr
     1.6  	cp -a $_pkg/usr/share/yasr $fs/usr/share
     1.7 +}
     1.8  
     1.9 -	# enable speech-synthesizer in config file
    1.10 -	cd $fs/usr/share/yasr
    1.11 +post_install()
    1.12 +{
    1.13 +	# Enable speech-synthesizer in config file
    1.14 +	echo -n "Enabling config file..."
    1.15 +	cd $1/usr/share/yasr
    1.16  	sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
    1.17  	s/#synthesizer=speech/synthesizer=speech/; \
    1.18  	s/synthesizer port=|/#synthesizer port=|/; \
    1.19 -	s/#synthesizer port=127./synthesizer port=127./' yasr.conf	
    1.20 +	s/#synthesizer port=127./synthesizer port=127./' yasr.conf
    1.21 +	status	
    1.22  }
    1.23