SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tuxpaint"

# SliTaz package receipt.

PACKAGE="tuxpaint"
VERSION="0.9.23"
CATEGORY="graphics"
SHORT_DESC="Drawing program designed for young children."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://tuxpaint.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/sourceforge/$PACKAGE/$TARBALL"

DEPENDS="cairo fribidi libpaper libpng librsvg libsdl-image libsdl-mixer \
    libsdl-pango libsdl-ttf python"
BUILD_DEPENDS="cairo-dev fribidi-dev gperf kdelibs libpaper-dev libpng-dev 
    libQtSvg librsvg-dev libsdl-dev libsdl-image-dev libsdl-mixer-dev 
    libsdl-pango-dev libsdl-ttf-dev python-dev"

current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/$(ARCH_LINKS)/$(ARCH_LINKS) -lpng/' Makefile
    sed '/DIR).(KDE_PREFIX).tuxpaint.desktop/{N;N;s|desktop; \\|&\n\t  kbuildsycoca4; \\|;s|fi\n\tkbuildsycoca4|fi|}' \
        -i Makefile

    make -j1 PREFIX=/usr &&
    make -j1 PREFIX=/usr DESTDIR=$DESTDIR install
}

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

    cp -a $install/etc            $fs
    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib            $fs/usr
    cp -a $install/usr/share/tuxpaint    $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)