wok-next annotate yasr/receipt @ rev 18588
make-slitaz-icons: add more icons
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 13 02:41:02 2015 +0200 (2015-11-13) |
parents | b7319995b37e |
children | 9e01bc6321ea |
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 |
paul@7712 | 37 echo -n "Enabling config file..." |
paul@7712 | 38 cd $1/usr/share/yasr |
paul@4891 | 39 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \ |
paul@4891 | 40 s/#synthesizer=speech/synthesizer=speech/; \ |
paul@4891 | 41 s/synthesizer port=|/#synthesizer port=|/; \ |
paul@7712 | 42 s/#synthesizer port=127./synthesizer port=127./' yasr.conf |
paul@7712 | 43 status |
paul@4891 | 44 } |
paul@4891 | 45 |