wok-4.x view yasr/receipt @ rev 9874
slitaz-boot-script: fix path for bootlof script
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 23:45:00 2011 +0200 (2011-05-16) |
parents | 0b4cf0d9e1b5 |
children | b7319995b37e |
line source
1 # SliTaz package receipt.
3 PACKAGE="yasr"
4 VERSION="0.6.9"
5 CATEGORY="utilities"
6 SHORT_DESC="General purpose console screen reader."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="speech-dispatcher espeak bash"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://yasr.sourceforge.net/"
11 WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src/yasr
17 patch -p0 < $stuff/yasr.patch || return 1
18 cd ../
19 ./configure \
20 --prefix=/usr
21 make && make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share
28 cp -a $_pkg/usr/bin $fs/usr
29 cp -a $_pkg/usr/share/yasr $fs/usr/share
30 }
32 post_install()
33 {
34 # Enable speech-synthesizer in config file
35 echo -n "Enabling config file..."
36 cd $1/usr/share/yasr
37 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
38 s/#synthesizer=speech/synthesizer=speech/; \
39 s/synthesizer port=|/#synthesizer port=|/; \
40 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
41 status
42 }