wok annotate yasr/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 922f061231c2
children
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"
pascal@25460 10 WEB_SITE="https://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
pascal@24304 15 # What is the latest version available today?
pascal@24304 16 current_version()
pascal@24304 17 {
pascal@24304 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24304 19 sed '/> version/!d;s|.*-||;s|.tar.*||'
pascal@24304 20 }
pascal@24304 21
paul@4891 22 # Rules to configure and make the package.
paul@4891 23 compile_rules()
paul@4891 24 {
paul@4891 25 cd $src/yasr
pascal@8974 26 patch -p0 < $stuff/yasr.patch || return 1
paul@4891 27 cd ../
paul@4891 28 ./configure \
gokhlayeh@11573 29 --prefix=/usr $CONFIGURE_ARGS &&
pascal@15362 30 make && make DESTDIR=$DESTDIR install
paul@4891 31 }
paul@4891 32
paul@4891 33 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4891 34 genpkg_rules()
paul@4891 35 {
paul@4891 36 mkdir -p $fs/usr/share
pascal@15362 37 cp -a $install/usr/bin $fs/usr
pascal@15362 38 cp -a $install/usr/share/yasr $fs/usr/share
paul@7712 39 }
paul@4891 40
paul@7712 41 post_install()
paul@7712 42 {
paul@7712 43 # Enable speech-synthesizer in config file
pascal@20319 44 echo
paul@7712 45 echo -n "Enabling config file..."
pascal@18730 46 cd "$1/usr/share/yasr"
paul@4891 47 sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
paul@4891 48 s/#synthesizer=speech/synthesizer=speech/; \
paul@4891 49 s/synthesizer port=|/#synthesizer port=|/; \
paul@7712 50 s/#synthesizer port=127./synthesizer port=127./' yasr.conf
paul@7712 51 status
paul@4891 52 }
paul@4891 53