wok annotate yasr/receipt @ rev 21919

updated smake (1.2a49 -> 1.2.5)
author Hans-G?nter Theisgen
date Sat Oct 05 11:16:38 2019 +0100 (2019-10-05)
parents 9e01bc6321ea
children 922f061231c2
rev   line source
paul@4891 1 # SliTaz package receipt.
paul@4891 2
paul@4891 3 PACKAGE="yasr"
paul@4891 4 VERSION="0.6.9"
paul@4891 5 CATEGORY="utilities"
paul@4891 6 SHORT_DESC="General purpose console screen reader."
paul@4891 7 MAINTAINER="paul@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
paul@4891 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@4891 10 WEB_SITE="http://yasr.sourceforge.net/"
paul@4891 11 WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL"
paul@4891 12
pascal@15362 13 DEPENDS="speech-dispatcher espeak bash"
pascal@15362 14
paul@4891 15 # Rules to configure and make the package.
paul@4891 16 compile_rules()
paul@4891 17 {
paul@4891 18 cd $src/yasr
pascal@8974 19 patch -p0 < $stuff/yasr.patch || return 1
paul@4891 20 cd ../
paul@4891 21 ./configure \
gokhlayeh@11573 22 --prefix=/usr $CONFIGURE_ARGS &&
pascal@15362 23 make && make DESTDIR=$DESTDIR install
paul@4891 24 }
paul@4891 25
paul@4891 26 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4891 27 genpkg_rules()
paul@4891 28 {
paul@4891 29 mkdir -p $fs/usr/share
pascal@15362 30 cp -a $install/usr/bin $fs/usr
pascal@15362 31 cp -a $install/usr/share/yasr $fs/usr/share
paul@7712 32 }
paul@4891 33
paul@7712 34 post_install()
paul@7712 35 {
paul@7712 36 # Enable speech-synthesizer in config file
pascal@20319 37 echo
paul@7712 38 echo -n "Enabling config file..."
pascal@18730 39 cd "$1/usr/share/yasr"
paul@4891 40 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
paul@4891 41 s/#synthesizer=speech/synthesizer=speech/; \
paul@4891 42 s/synthesizer port=|/#synthesizer port=|/; \
paul@7712 43 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
paul@7712 44 status
paul@4891 45 }
paul@4891 46