SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tuxmath"

# SliTaz package receipt.

PACKAGE="tuxmath"
SOURCE="tuxmath_w_fonts"
VERSION="2.0.3"
CATEGORY="games"
SHORT_DESC="Arcade game that helps kids practice their math facts."
MAINTAINER="claudinei@slitaz.org"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://tux4kids.alioth.debian.org"
WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL"
DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \
libsdl-net libsdl-pango"
BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \
libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget"
TAGS="education"


# Rules to configure and make the package.
compile_rules()
{
    cd $src
    #patch -p1 -i $stuff/SDL_extras.c.patch    
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

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

    for lang in de es fr pt_BR zh_CN; do
        mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
        cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
                $fs/usr/share/locale/$lang/LC_MESSAGES
    done
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)