wok view yasr/receipt @ rev 18024
Up: cookutils, cookutils-daemon (again).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 03 19:46:03 2015 +0300 (2015-05-03) |
parents | b7319995b37e |
children | 9e01bc6321ea |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://yasr.sourceforge.net/"
11 WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL"
13 DEPENDS="speech-dispatcher espeak bash"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src/yasr
19 patch -p0 < $stuff/yasr.patch || return 1
20 cd ../
21 ./configure \
22 --prefix=/usr $CONFIGURE_ARGS &&
23 make && make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/share/yasr $fs/usr/share
32 }
34 post_install()
35 {
36 # Enable speech-synthesizer in config file
37 echo -n "Enabling config file..."
38 cd $1/usr/share/yasr
39 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
40 s/#synthesizer=speech/synthesizer=speech/; \
41 s/synthesizer port=|/#synthesizer port=|/; \
42 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
43 status
44 }