[Lunar-commits] <moonbase> sauerbraten: Another first person shooter (known as Cube 2 too).
Florin Braescu
florin at lunar-linux.org
Tue May 12 15:45:52 CEST 2009
commit c11ec24878e2888df05388ff6b3d67af6bfa0e86
Author: Florin Braescu <florin at lunar-linux.org>
Date: Tue May 12 16:45:52 2009 +0300
sauerbraten: Another first person shooter (known as Cube 2 too).
---
games/sauerbraten/BUILD | 18 ++++++++++++++++++
games/sauerbraten/DEPENDS | 4 ++++
games/sauerbraten/DETAILS | 19 +++++++++++++++++++
games/sauerbraten/sauerbraten | 13 +++++++++++++
4 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/games/sauerbraten/BUILD b/games/sauerbraten/BUILD
new file mode 100644
index 0000000..dea9dde
--- /dev/null
+++ b/games/sauerbraten/BUILD
@@ -0,0 +1,18 @@
+(
+
+ cd src &&
+ make &&
+
+ prepare_install &&
+
+ cp sauer_* /usr/games &&
+ cp $SCRIPT_DIRECTORY/sauerbraten /usr/games &&
+ chmod 755 /usr/games/sauerbraten &&
+
+ cd .. &&
+ mkdir -p /usr/share/games/sauerbraten &&
+ cp -fR data /usr/share/games/sauerbraten/ &&
+ cp -fR packages /usr/share/games/sauerbraten/ &&
+ cp -fR docs /usr/share/games/sauerbraten/
+
+) > $C_FIFO 2>&1
diff --git a/games/sauerbraten/DEPENDS b/games/sauerbraten/DEPENDS
new file mode 100644
index 0000000..3fb616d
--- /dev/null
+++ b/games/sauerbraten/DEPENDS
@@ -0,0 +1,4 @@
+depends libpng
+depends jpeg
+depends SDL_image
+depends SDL_mixer
diff --git a/games/sauerbraten/DETAILS b/games/sauerbraten/DETAILS
new file mode 100644
index 0000000..18f21c2
--- /dev/null
+++ b/games/sauerbraten/DETAILS
@@ -0,0 +1,19 @@
+ MODULE=sauerbraten
+ VERSION=2009_05_04
+ SOURCE=${MODULE}_${VERSION}_trooper_edition_linux.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
+ SOURCE_URL=$SFORGE_URL/$MODULE
+ SOURCE_VFY=sha1:d4cc4afe711810ce1c2bc6068e76317b9f9d4f53
+ WEB_SITE=http://sauerbraten.org
+ ENTERED=20090511
+ UPDATED=20090511
+ SHORT="Another first person shooter game"
+
+cat << EOF
+Cube 2: Sauerbraten is a free multiplayer/singleplayer first person
+shooter, built as a major redesign of the Cube FPS. Much like the
+original Cube, the aim of this game is not necessarily to produce the
+most features & eyecandy possible, but rather to allow map/geometry
+editing to be done dynamically in-game, to create fun gameplay and an
+elegant engine.
+EOF
diff --git a/games/sauerbraten/sauerbraten b/games/sauerbraten/sauerbraten
new file mode 100644
index 0000000..fa6c155
--- /dev/null
+++ b/games/sauerbraten/sauerbraten
@@ -0,0 +1,13 @@
+#!/bin/sh
+# SAUER_DATA should refer to the directory in which Sauerbraten data files are placed.
+SAUER_DATA=/usr/share/games/sauerbraten
+
+# SAUER_BIN should refer to the directory in which Sauerbraten executable files are placed.
+SAUER_BIN=/usr/games
+
+# SAUER_OPTIONS contains any command line options you would like to start Sauerbraten with.
+#SAUER_OPTIONS="-f"
+SAUER_OPTIONS="-q${HOME}/.sauerbraten -r"
+
+cd ${SAUER_DATA}
+exec ${SAUER_BIN}/sauer_client ${SAUER_OPTIONS} "$@"
More information about the Lunar-commits
mailing list