wok-current annotate yasr/receipt @ rev 11573
Fix build/host configure option in recipes which was not detecting the right ones well + tiny fixes.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 02 23:06:18 2012 +0100 (2012-01-02) |
parents | 940b5937e496 |
children | 617dbdeb6f7e |
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 \ |
gokhlayeh@11573 | 20 --prefix=/usr $CONFIGURE_ARGS && |
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 |