wok-next annotate yasr/receipt @ rev 21237

try to build cndrvcups-common again
author Hans-G?nter Theisgen
date Wed Dec 04 16:52:15 2019 +0100 (2019-12-04)
parents f48456621a9d
children
rev   line source
al@21017 1 # SliTaz package receipt v2.
paul@4891 2
paul@4891 3 PACKAGE="yasr"
paul@4891 4 VERSION="0.6.9"
paul@4891 5 CATEGORY="utilities"
al@21017 6 SHORT_DESC="General purpose console screen reader"
paul@4891 7 MAINTAINER="paul@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
al@21017 9 WEB_SITE="http://yasr.sourceforge.net/"
al@21017 10
paul@4891 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@21017 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
paul@4891 13
al@21017 14 compile_rules() {
paul@4891 15 ./configure \
al@21017 16 --prefix=/usr \
al@21017 17 $CONFIGURE_ARGS &&
al@21017 18 make &&
al@21020 19 make DESTDIR=$install install
paul@4891 20 }
paul@4891 21
al@21017 22 genpkg_rules() {
paul@4891 23 mkdir -p $fs/usr/share
pascal@15362 24 cp -a $install/usr/bin $fs/usr
pascal@15362 25 cp -a $install/usr/share/yasr $fs/usr/share
al@21017 26 DEPENDS="speech-dispatcher espeak bash"
paul@7712 27 }
paul@4891 28
al@21017 29 post_install() {
paul@7712 30 # Enable speech-synthesizer in config file
al@21017 31 sed 's!synthesizer=emacspeak!#synthesizer=emacspeak!;
al@21017 32 s!#synthesizer=speech!synthesizer=speech!;
al@21017 33 s!synthesizer port=|!#synthesizer port=|!;
al@21017 34 s!#synthesizer port=127.!synthesizer port=127.!' \
al@21017 35 -i "$1/usr/share/yasr/yasr.conf"
paul@4891 36 }