SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "klavaro"

# SliTaz package receipt.

PACKAGE="klavaro"
VERSION="1.9.9"
CATEGORY="system-tools"
SHORT_DESC="Free touch typing tutor program."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://klavaro.sourceforge.net/en/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="typing"

DEPENDS="gtk+ xorg-libXdamage gtkdatabox libcurl libsexy"
BUILD_DEPENDS="$DEPENDS pkg-config gtk+-dev xorg-xproto gtkdatabox-dev \
curl-dev libsexy-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/klavaro/files/ 2>/dev/null | \
    sed '/scope="row/!d;/tar/!d;s|.*/klavaro-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgmodule-2.0"
    ./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/pixmaps
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/klavaro $fs/usr/share
    cp -a $install/usr/share/icons/hicolor/24x24/apps/* \
        $fs/usr/share/pixmaps
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)