summaryrefslogtreecommitdiff
path: root/community/warsow
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/warsow
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/warsow')
-rw-r--r--community/warsow/PKGBUILD84
-rw-r--r--community/warsow/warsow.desktop11
-rw-r--r--community/warsow/warsow.launcher5
-rw-r--r--community/warsow/wsw-server.launcher5
-rw-r--r--community/warsow/wswtv-server.launcher5
5 files changed, 110 insertions, 0 deletions
diff --git a/community/warsow/PKGBUILD b/community/warsow/PKGBUILD
new file mode 100644
index 000000000..e4c11f1e0
--- /dev/null
+++ b/community/warsow/PKGBUILD
@@ -0,0 +1,84 @@
+# $Id: PKGBUILD 42571 2011-03-17 17:04:27Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Slash <demodevil5[at]yahoo[dot]com>
+# Contributor: Babets
+# Contributor: Vain
+
+pkgname=warsow
+pkgver=0.61
+pkgrel=1
+pkgdesc="a free online multiplayer competitive FPS based on the Qfusion engine"
+url="http://www.warsow.net/"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('curl' 'libjpeg' 'libvorbis' 'libxinerama' 'libxxf86dga' 'libxxf86vm' 'sdl' 'warsow-data')
+makedepends=('mesa' 'openal' 'unzip')
+optdepends=('openal: for openal audio support')
+source=('warsow.desktop' 'warsow.launcher' 'wsw-server.launcher' 'wswtv-server.launcher' \
+"http://www.zcdn.org/dl/warsow_${pkgver}_sdk.zip")
+noextract=("warsow_${pkgver}_sdk.zip")
+md5sums=('f9bf60c80820237f7097c4e50a9582cd'
+ 'ec00081d81ad9802a8ca42fc2eac5498'
+ 'f73e10c26197178df71b941b10bf83d7'
+ 'd7e4a69835bbcf801e58307e9d6b951e'
+ '04bd29a63c3a43a7e3ea3a865b75e580')
+
+build() {
+ unset CFLAGS
+ unset CXXFLAGS
+
+ # Extract Game Source Code
+ unzip -o warsow_${pkgver}_sdk.zip -d $srcdir/warsow-src
+
+ # Patch Makefile to use correct program to query for system information
+ sed -i 's:openal-config:pkg-config:g' $srcdir/warsow-src/source/Makefile
+
+ # Patch Sound Code to point to base openal library
+ sed -i 's:libopenal.so.0:libopenal.so:g' $srcdir/warsow-src/source/snd_openal/snd_main.c
+
+ # Patch for libjpeg8
+ sed -i 's/jpeg_mem_src/_jpeg_mem_src/g' $srcdir/warsow-src/source/ref_gl/r_image.c
+
+ # Patch AngelScript so it compiles correctly on i686
+ if [ "$CARCH" == "i686" ]; then
+ sed -i 's:CXXFLAGS = \(.*\):CXXFLAGS = -march=i686 \1:' \
+ $srcdir/warsow-src/libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile
+ fi
+
+ # Compile Warsow
+ cd $srcdir/warsow-src/source/
+ make -j1
+}
+
+package() {
+ cd $srcdir/warsow-src/source/
+
+ # Create Destination Directories
+ install -d $pkgdir/opt/warsow/
+
+ # Move Compiled Data to Destination Directory
+ cp -r $srcdir/warsow-src/source/release/* \
+ $pkgdir/opt/warsow
+
+ # Install Client Game Launcher
+ install -D -m 0755 $srcdir/warsow.launcher \
+ $pkgdir/usr/bin/warsow
+
+ # Install Server Game Launcher
+ install -D -m 0755 $srcdir/wsw-server.launcher \
+ $pkgdir/usr/bin/wsw-server
+
+ # Install WSWTV Server Launcher
+ install -D -m 0755 $srcdir/wswtv-server.launcher \
+ $pkgdir/usr/bin/wswtv-server
+
+ # Install Client Desktop Shortcut
+ install -D -m 0644 $srcdir/warsow.desktop \
+ $pkgdir/usr/share/applications/warsow.desktop
+
+ # Install Icon
+ install -D -m 0644 $srcdir/warsow-src/source/win32/warsow.ico \
+ $pkgdir/usr/share/pixmaps/warsow.ico
+}
+
+# vim: ts=2:sw=2
diff --git a/community/warsow/warsow.desktop b/community/warsow/warsow.desktop
new file mode 100644
index 000000000..839e13e02
--- /dev/null
+++ b/community/warsow/warsow.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Warsow
+GenericName=Warsow
+Comment=Online Multiplayer Competitive FPS
+Icon=/usr/share/pixmaps/warsow.ico
+Exec=/usr/bin/warsow
+Terminal=false
+Type=Application
+Categories=Application;Game
+StartupNotify=true
diff --git a/community/warsow/warsow.launcher b/community/warsow/warsow.launcher
new file mode 100644
index 000000000..64dac4188
--- /dev/null
+++ b/community/warsow/warsow.launcher
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd "/opt/warsow"
+./warsow $*
+exit $?
diff --git a/community/warsow/wsw-server.launcher b/community/warsow/wsw-server.launcher
new file mode 100644
index 000000000..5035253e6
--- /dev/null
+++ b/community/warsow/wsw-server.launcher
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd "/opt/warsow"
+./wsw_server $*
+exit $?
diff --git a/community/warsow/wswtv-server.launcher b/community/warsow/wswtv-server.launcher
new file mode 100644
index 000000000..10f70a234
--- /dev/null
+++ b/community/warsow/wswtv-server.launcher
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd "/opt/warsow"
+./wswtv_server $*
+exit $?