# HG changeset patch # User Antoine Bodin # Date 1285626193 -7200 # Node ID a9dbe46ded86e4476e0831e76f69be80547c0f2f # Parent 5c7155cf394a351c53e73372f48c908e609be97a Add: frogatto & frogatto-data 1.0.3 diff -r 5c7155cf394a -r a9dbe46ded86 frogatto-data/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frogatto-data/receipt Tue Sep 28 00:23:13 2010 +0200 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="frogatto-data" +VERSION="1.0.3" +CATEGORY="games" +SHORT_DESC="An old-school 2d platformer game, starring a certain quixotic frog (data files)" +MAINTAINER="gokhlayeh@mailoo.org" +WEB_SITE="http://www.frogatto.com" +WANTED="frogatto" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/games/frogatto + for i in data images music sounds FreeMono.ttf DejaVuSans.ttf; do + cp -a $src/$i $fs/usr/games/frogatto + done +} + diff -r 5c7155cf394a -r a9dbe46ded86 frogatto/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frogatto/receipt Tue Sep 28 00:23:13 2010 +0200 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="frogatto" +VERSION="1.0.3" +CATEGORY="games" +SHORT_DESC="An old-school 2d platformer game, starring a certain quixotic frog" +MAINTAINER="gokhlayeh@mailoo.org" +DEPENDS="xorg-server mesa glew libsdl libsdl-image libsdl-ttf libsdl-mixer libpng \ +libboost-regex libboost-system libboost-date-time libboost-thread libboost-iostreams \ +frogatto-data" +BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache xorg-server-dev mesa-dev libsdl-dev libsdl-image-dev \ +libsdl-ttf-dev libsdl-mixer-dev libpng-dev libboost-regex-dev libboost-system-dev \ +libboost-date-time-dev libboost-thread-dev libboost-iostreams-dev" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.frogatto.com" +WGET_URL="$WEB_SITE/files/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + # 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 + + make -j 4 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 $fs/usr/share/applications \ + $fs/usr/bin + cp -a $src/game $src/server $fs/usr/games/frogatto + cp -a stuff/frogatto $fs/usr/bin + cp -a stuff/frogatto.desktop $fs/usr/share/applications +} diff -r 5c7155cf394a -r a9dbe46ded86 frogatto/stuff/frogatto --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frogatto/stuff/frogatto Tue Sep 28 00:23:13 2010 +0200 @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/games/frogatto +exec /usr/games/frogatto/game $* diff -r 5c7155cf394a -r a9dbe46ded86 frogatto/stuff/frogatto.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frogatto/stuff/frogatto.desktop Tue Sep 28 00:23:13 2010 +0200 @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Frogatto +GenericName=Old-school 2D platformer +Comment=Old-school 2D platformer +Exec=/usr/bin/frogatto +Terminal=false +MultipleArgs=false +Type=Application +Icon=/usr/games/frogatto/images/window-icon.png +Categories=Game;ArcadeGame