wok view yasr/receipt @ rev 23584
updated python-whoosh (2.5.7 -> 2.7.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 14:07:00 2020 +0100 (2020-04-07) |
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 }