SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pingus"

# SliTaz package receipt.

# FIXME : Check if the tarball comes with a .desktop and a pixmap files
# Then remove the section in genpkg_rules() that creates them

PACKAGE="pingus"
VERSION="0.7.3"
CATEGORY="games"
SHORT_DESC="Pingus is a free Lemmings-like game."
MAINTAINER="chadi.elahmad@gmail.com"
LICENSE="GPL2"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://gitlab.com/pingus/pingus"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"

DEPENDS="libsdl libsdl-image libsdl-mixer 
libboost-signals gcc-lib-base"

BUILD_DEPENDS="scons 
libsdl-dev libsdl-image-dev libsdl-mixer-dev 
libboost-dev libboost-signals-dev "

# What is the latest version available today?
current_version()
{
    wget -O - https://gitlab.com/pingus/pingus/-/tags?sort=updated_desc 2> /dev/null | \
    sed '/item-title/!d;s|.*>v||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    scons
}

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

    # the tarball doesn't contain any .desktop file, nor a pixmap
    # let's create them
    mkdir -p $fs/usr/share/pixmaps
    mkdir -p $fs/usr/share/applications
    cp -a $src/data/images/core/editor/actions.png \
        $fs/usr/share/pixmaps/pingus.png
    cat > $fs/usr/share/applications/pingus.desktop <<EOF
[Desktop Entry]
Name=Pingus
Exec=pingus -w
Type=Application
Categories=Application;Game;
Icon=pingus
EOF
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)