SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "supertux"

# SliTaz package receipt.

PACKAGE="supertux"
VERSION="0.3.3"
CATEGORY="games"
SHORT_DESC="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games."
MAINTAINER="mallory@sweetpeople.org"
LICENSE="GPL3"
SUGGESTED="nvidia"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://supertux.lethargik.org/"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"

DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal mesa glew \
supertux-data"
BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \
physfs-dev openal-dev mesa-dev glew-dev cmake libboost-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/SuperTux/supertux/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/[A-Za-z ]*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    cp $stuff/menu.h src
    sed -i 's|#  include <curl/types.h>||g' src/addon/addon_manager.cpp
    sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
    cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)