wok-next view yasr/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 9e01bc6321ea |
children | f48456621a9d |
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 ./configure \
19 --prefix=/usr $CONFIGURE_ARGS &&
20 make && make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share
27 cp -a $install/usr/bin $fs/usr
28 cp -a $install/usr/share/yasr $fs/usr/share
29 }
31 post_install()
32 {
33 # Enable speech-synthesizer in config file
34 echo -n "Enabling config file..."
35 cd "$1/usr/share/yasr"
36 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
37 s/#synthesizer=speech/synthesizer=speech/; \
38 s/synthesizer port=|/#synthesizer port=|/; \
39 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
40 status
41 }