wok-6.x view yasr/receipt @ rev 20919
updated file, libmagic, libmagic-dev, and python-magic (5.30 -> 5.36)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 01 16:28:21 2019 +0100 (2019-03-01) |
parents | 9e01bc6321ea |
children | 922f061231c2 |
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
38 echo -n "Enabling config file..."
39 cd "$1/usr/share/yasr"
40 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
41 s/#synthesizer=speech/synthesizer=speech/; \
42 s/synthesizer port=|/#synthesizer port=|/; \
43 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
44 status
45 }