SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "yasr"

# SliTaz package receipt.

PACKAGE="yasr"
VERSION="0.6.9"
CATEGORY="utilities"
SHORT_DESC="General purpose console screen reader."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://yasr.sourceforge.net/"
WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL"

DEPENDS="speech-dispatcher espeak bash"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/> version/!d;s|.*-||;s|.tar.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/yasr
    patch -p0 < $stuff/yasr.patch || return 1
    cd ../
    ./configure \
        --prefix=/usr $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/yasr $fs/usr/share
}

post_install()
{
    # Enable speech-synthesizer in config file
    echo
    echo -n "Enabling config file..."
    cd "$1/usr/share/yasr"
    sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
    s/#synthesizer=speech/synthesizer=speech/; \
    s/synthesizer port=|/#synthesizer port=|/; \
    s/#synthesizer port=127./synthesizer port=127./' yasr.conf
    status    
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)