[Lunar-commits] <moonbase> warsow: first-person multiplayer frag-em-up shooter
Paul Bredbury
brebs at lunar-linux.org
Thu Sep 3 18:00:39 CEST 2009
commit f5101ec916264250174efb5ab4f5d286afe80c37
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Thu Sep 3 23:00:39 2009 +0700
warsow: first-person multiplayer frag-em-up shooter
New module, adding to moonbase.
---
zbeta/warsow/BUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
zbeta/warsow/DEPENDS | 6 +++++
zbeta/warsow/DETAILS | 50 ++++++++++++++++++++++++++++++++++++++++++
zbeta/warsow/PRE_BUILD | 7 ++++++
4 files changed, 120 insertions(+), 0 deletions(-)
diff --git a/zbeta/warsow/BUILD b/zbeta/warsow/BUILD
new file mode 100644
index 0000000..b2b2f1f
--- /dev/null
+++ b/zbeta/warsow/BUILD
@@ -0,0 +1,57 @@
+(
+
+ # In other distros:
+ # http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/
+ # http://aur.archlinux.org/packages.php?ID=2679
+
+ INST_DIR=/usr/share/games/$MODULE &&
+
+ cd source &&
+
+ # Be compatible with libopenal.so.1
+ # http://www.warsow.net/forum/viewtopic.php?id=20939
+ sedit "s:openal-config:pkg-config openal:" Makefile &&
+ sedit "s:libopenal.so.0:libopenal.so:" snd_openal/snd_main.c &&
+
+ # Use shared dir
+ sedit "/fs_basepath =/ s:\.:${INST_DIR}:" qcommon/files.c &&
+
+ # Fix for: LoadLibrary (/usr/share/games/warsow/libs/angelwrap_i386.so):(/usr/share/games/warsow/libs/angelwrap_i386.so: undefined symbol: __sync_sub_and_fetch_4)
+ sedit 's:CXXFLAGS = \(.*\):CXXFLAGS = -march=i686 \1:' ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile &&
+
+ make BINDIR=bin BUILD_CLIENT=YES BUILD_SERVER=YES BUILD_TV_SERVER=YES \
+ BUILD_ANGELWRAP=YES BUILD_IRC=YES BUILD_SND_OPENAL=YES \
+ BUILD_SND_QF=YES DEBUG_BUILD=NO &&
+
+ prepare_install &&
+
+ # The executables have an arch suffix, e.g. i386
+ install -D -m755 bin/warsow.* /usr/games/warsow &&
+ install -D -m755 bin/wsw_server.* /usr/games/warsow-ded &&
+ install -D -m755 bin/wswtv_server.* /usr/games/warsow-tv &&
+
+ mkdir -p $INST_DIR/ &&
+
+ # Use the freshly-compiled libs. Should really go in /usr/lib/$MODULE/
+ cp -a bin/libs $INST_DIR/ &&
+
+ cd .. &&
+ cp -ar basewsw $INST_DIR/ &&
+
+ # Desktop icon
+ install -D -m644 $SOURCE_CACHE/$SOURCE3 /usr/share/pixmaps/${MODULE}.png &&
+
+ # Desktop menu entry
+ cat > ${MODULE}.desktop << EOF &&
+[Desktop Entry]
+Type=Application
+Name=Warsow
+Comment=$SHORT
+Exec=$MODULE
+Icon=$MODULE
+Categories=Game;ActionGame;
+EOF
+
+ install -D -m644 ${MODULE}.desktop /usr/share/applications/${MODULE}.desktop
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/warsow/DEPENDS b/zbeta/warsow/DEPENDS
new file mode 100644
index 0000000..e65878c
--- /dev/null
+++ b/zbeta/warsow/DEPENDS
@@ -0,0 +1,6 @@
+depends curl
+depends jpeg
+depends libvorbis
+depends openal
+depends %GLX
+depends SDL
diff --git a/zbeta/warsow/DETAILS b/zbeta/warsow/DETAILS
new file mode 100644
index 0000000..bd3db44
--- /dev/null
+++ b/zbeta/warsow/DETAILS
@@ -0,0 +1,50 @@
+ MODULE=warsow
+ VERSION=0.5
+ SOURCE=${MODULE}_${VERSION}_unified.zip
+ SOURCE2=${MODULE}_${VERSION}_sdk.zip
+ SOURCE3=${MODULE}.png
+ # They can't spell "community"
+ SOURCE4=${MODULE}_comunity_map_pack_01.zip
+
+ # Fastest mirror is first in list
+ SOURCE_URL[0]=http://www.derchris.eu/warsow/
+ SOURCE_URL[1]=http://static.warsow.net/release/
+ SOURCE_URL[2]=http://woe.crying-wolves.net/
+ SOURCE_URL[3]=http://343meterprosekunde.de/mirror/warsow/
+
+ SOURCE2_URL[0]=http://www.derchris.eu/warsow/
+ SOURCE2_URL[1]=http://static.warsow.net/release/
+ SOURCE2_URL[2]=http://woe.crying-wolves.net/
+ SOURCE2_URL[3]=http://343meterprosekunde.de/mirror/warsow/
+
+ SOURCE3_URL[0]=http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/
+ SOURCE3_URL[1]=http://mirror.its.uidaho.edu/pub/gentoo/distfiles/
+ SOURCE3_URL[2]=http://de-mirror.org/distro/gentoo/distfiles/
+ SOURCE3_URL[3]=http://gentoo.in.th/distfiles/
+
+ SOURCE4_URL[0]=http://www.derchris.eu/warsow/
+ SOURCE4_URL[1]=http://static.warsow.net/release/
+ SOURCE4_URL[2]=http://woe.crying-wolves.net/
+ SOURCE4_URL[3]=http://343meterprosekunde.de/mirror/warsow/
+
+ SOURCE_VFY=sha1:71b9b9b43578ad2ccc9b73fe5435dd018faf7772
+ SOURCE2_VFY=sha1:faa58805b0aedfb5b44e35cd21384088314d2be3
+ SOURCE3_VFY=sha1:73f0a742940861724bec445a1a582f89d9517dcf
+ SOURCE4_VFY=sha1:a0eb641f8de158e53e90a42dbd14bf52461fa619
+ WEB_SITE=http://www.warsow.net/
+ ENTERED=20090903
+ UPDATED=20090903
+ SHORT="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
+
+cat << EOF
+Set in a futuristic cartoon-like world where rocket launcher-wielding
+pigs and laser gun-carrying cyberpunks roam the streets, Warsow is a
+completely free fast-paced first-person shooter (FPS) for Windows,
+Linux and Mac OS X.
+
+Speed and movement, that's what Warsow is all about. Like a true cyber-
+athlete you jump, dash, dodge and wall-jump your way through the game.
+Grab those power-ups before your enemy does, plant the bomb before
+anyone sees you, and steal the enemy's flag before anyone knows what's
+going on!
+EOF
diff --git a/zbeta/warsow/PRE_BUILD b/zbeta/warsow/PRE_BUILD
new file mode 100644
index 0000000..ffcc2a8
--- /dev/null
+++ b/zbeta/warsow/PRE_BUILD
@@ -0,0 +1,7 @@
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+unpack $SOURCE &&
+unpack $SOURCE2 &&
+# Source3 is icon - no need to unpack
+unpack $SOURCE4
More information about the Lunar-commits
mailing list