wok-6.x view yasr/receipt @ rev 19140

Up ffmpeg (3.0.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 18:14:33 2016 +0200 (2016-05-18)
parents 617dbdeb6f7e
children 970c5ec9a60a
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 }