SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "frogatto"

# SliTaz package receipt.

PACKAGE="frogatto"
VERSION="1.3.1"
CATEGORY="games"
SHORT_DESC="An old-school 2d platform game, starring a certain quixotic frog."
MAINTAINER="gokhlayeh@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.frogatto.com"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"

DEPENDS="frogatto-data glew libboost-date-time libboost-iostreams \
    libboost-regex libboost-system libboost-thread libpng \
    libsdl libsdl-image libsdl-mixer libsdl-ttf mesa xorg-server"
BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache coreutils glew-dev \
    libboost-date-time-dev libboost-iostreams-dev libboost-regex-dev \
    libboost-system-dev libboost-thread-dev libpng-dev libsdl-dev \
    libsdl-image-dev libsdl-mixer-dev libsdl-ttf-dev mesa-dev \
    xorg-server-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    patch --input=$stuff/patches/server.cpp-1.3.1 \
        src/server.cpp

    # Frogatto look for multithread libbost (*-mt.so) but we don't use
    # them in SliTaz, let's lure it.
    for lib in $(ls /usr/lib/libboost*)
      do
        link=$(echo $lib | sed 's/\./-mt./')
        ln -s $lib $link
      done

    # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
#    sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
#    not required with version 1.3.1

    make $MAKEFLAGS game server

    # Remove the links previously created.
    rm -f /usr/lib/libboost*-mt*
}

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

    cp -a $src/game                $fs/usr/games/frogatto
    cp -a $src/server            $fs/usr/games/frogatto
    cp -a $src/images/window-icon.png    $fs/usr/share/pixmaps
    cp -a $stuff/frogatto            $fs/usr/bin
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)