# HG changeset patch # User Christopher Rogers # Date 1286943529 0 # Node ID 96575ba8782e6831e8bad0f34236d105f7a18a83 # Parent 369f9efbaac9f7e89e6b432775c64d88ae0607f2 Added btanks. A fast 2d tank arcade game with multiplayer and split-screen modes. diff -r 369f9efbaac9 -r 96575ba8782e btanks/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btanks/receipt Wed Oct 13 04:18:49 2010 +0000 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="btanks" +VERSION="0.9.8083" +CATEGORY="games" +SHORT_DESC="A fast 2d tank arcade game with multiplayer and split-screen modes." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="expat mesa libsigc++ libvorbis lua openal libsdl libsdl-image libsmpeg" +BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg libogg-dev lua-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons chrpath pkg-config" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://btanks.sourceforge.net" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +# 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/lib/btanks $fs/usr/share/applications $fs/usr/bin + cp -a $src/*.so $fs/usr/lib/btanks + cp -a $src/btanks $fs/usr/bin/btanks-bin + cp -a $src/bted $fs/usr/bin/bted-bin + + cp -a $WOK/$PACKAGE/stuff/btanks_script $fs/usr/bin/btanks + cp -a $WOK/$PACKAGE/stuff/bted_script $fs/usr/bin/bted + chmod +x $fs/usr/bin/btanks + chmod +x $fs/usr/bin/bted + + mkdir -p $fs/usr/share/btanks + + # Make settings saveable + + touch $fs/usr/share/btanks/bt.xml + chgrp 1000 $fs/usr/share/btanks/bt.xml + chmod 664 $fs/usr/share/btanks/bt.xml + + ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \ + ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1 + + ls -1 $fs/usr/lib/btanks/ | while read A; do + ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1 + done + + # game data + cp -a $src/data $fs/usr/share/btanks +} diff -r 369f9efbaac9 -r 96575ba8782e btanks/stuff/btanks.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btanks/stuff/btanks.desktop Wed Oct 13 04:18:49 2010 +0000 @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Battle Tanks! +Comment= A 2D arcade tank battle! +Icon=btanks +Exec=btanks +Terminal=false +StartupNotify=false +Categories=Game;ArcadeGame; diff -r 369f9efbaac9 -r 96575ba8782e btanks/stuff/btanks.png Binary file btanks/stuff/btanks.png has changed diff -r 369f9efbaac9 -r 96575ba8782e btanks/stuff/btanks_script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btanks/stuff/btanks_script Wed Oct 13 04:18:49 2010 +0000 @@ -0,0 +1,6 @@ +#!/bin/sh +#This is the script for running the actual btanks executable + +cd /usr/share/btanks/ +export LD_LIBRARY_PATH=/usr/lib/btanks +exec ./btanks diff -r 369f9efbaac9 -r 96575ba8782e btanks/stuff/bted_script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btanks/stuff/bted_script Wed Oct 13 04:18:49 2010 +0000 @@ -0,0 +1,6 @@ +#!/bin/sh +#This is the script for running the actual bted executable + +cd /usr/share/btanks/ +export LD_LIBRARY_PATH=/usr/lib/btanks +exec ./bted