wok annotate yasr/receipt @ rev 10802

glib-networking: Fixed it to use offical source url. Please remove source tarball on tank or this package will not build.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jun 04 08:51:01 2011 +0000 (2011-06-04)
parents 0b4cf0d9e1b5
children b7319995b37e
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"
paul@4912 8 DEPENDS="speech-dispatcher espeak bash"
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
paul@4891 13 # Rules to configure and make the package.
paul@4891 14 compile_rules()
paul@4891 15 {
paul@4891 16 cd $src/yasr
pascal@8974 17 patch -p0 < $stuff/yasr.patch || return 1
paul@4891 18 cd ../
paul@4891 19 ./configure \
paul@4891 20 --prefix=/usr
paul@4891 21 make && make DESTDIR=$PWD/_pkg install
paul@4891 22 }
paul@4891 23
paul@4891 24 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4891 25 genpkg_rules()
paul@4891 26 {
paul@4891 27 mkdir -p $fs/usr/share
paul@4891 28 cp -a $_pkg/usr/bin $fs/usr
paul@4891 29 cp -a $_pkg/usr/share/yasr $fs/usr/share
paul@7712 30 }
paul@4891 31
paul@7712 32 post_install()
paul@7712 33 {
paul@7712 34 # Enable speech-synthesizer in config file
paul@7712 35 echo -n "Enabling config file..."
paul@7712 36 cd $1/usr/share/yasr
paul@4891 37 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
paul@4891 38 s/#synthesizer=speech/synthesizer=speech/; \
paul@4891 39 s/synthesizer port=|/#synthesizer port=|/; \
paul@7712 40 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
paul@7712 41 status
paul@4891 42 }
paul@4891 43