summaryrefslogtreecommitdiff
path: root/community/openarena
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/openarena
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/openarena')
-rw-r--r--community/openarena/PKGBUILD70
-rw-r--r--community/openarena/openarena-server.desktop8
-rw-r--r--community/openarena/openarena-server.pngbin0 -> 2302 bytes
-rw-r--r--community/openarena/openarena.desktop7
-rw-r--r--community/openarena/openarena.pngbin0 -> 2255 bytes
-rw-r--r--community/openarena/strcpy-memmove.patch20
6 files changed, 105 insertions, 0 deletions
diff --git a/community/openarena/PKGBUILD b/community/openarena/PKGBUILD
new file mode 100644
index 000000000..707848e5d
--- /dev/null
+++ b/community/openarena/PKGBUILD
@@ -0,0 +1,70 @@
+# $Id: PKGBUILD 64715 2012-02-18 02:34:57Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
+
+pkgname=openarena
+pkgver=0.8.8
+_oldver=0.8.1
+pkgrel=1
+pkgdesc="A violent, sexy, multiplayer first person shooter based on the ioquake3 engine"
+arch=('i686' 'x86_64')
+url="http://openarena.ws/"
+license=('GPL')
+depends=('sdl' 'libvorbis' 'curl' 'openarena-data')
+makedepends=('openal' 'mesa')
+optdepends=('openal')
+source=(http://download.tuxfamily.org/$pkgname/rel/081/oa081.zip
+ http://download.tuxfamily.org/$pkgname/rel/085/oa085p.zip
+ http://178.63.102.135/svens_stuff/oa088p.zip
+ $url/svn/source/081/$pkgname-engine-$_oldver-1.tar.bz2
+ $pkgname.png
+ $pkgname-server.png
+ $pkgname.desktop
+ $pkgname-server.desktop
+ strcpy-memmove.patch)
+md5sums=('49006bcb02b4e8ea3d06749e8f4e4887'
+ 'b2a0437da751cd50dd2351ed9e0c4e9d'
+ '45da37955eba40cfd0e6e0f89cbb4b61'
+ '4ee696eacc4b0350f9dbb5588dcd74a2'
+ 'c69f824dc500d436fc631b78b6a62dc8'
+ '17e2f4fa060ed97ff6fe1eaff647bcfb'
+ '229c87648c10e48b523c25d24aba8372'
+ '00649517a4dd08cd9c6e99d6703f01f1'
+ '723ec16d949f454588d62da499bbefca')
+
+build() {
+ cd $srcdir/$pkgname-engine-$_oldver
+
+ patch -Np0 < $srcdir/strcpy-memmove.patch
+ sed -i 's/#define ALDRIVER_DEFAULT "libopenal.so.0"/#define ALDRIVER_DEFAULT "libopenal.so.1"/g' code/client/snd_openal.c
+
+ make DEFAULT_BASEDIR=/usr/share/$pkgname \
+ BUILD_CLIENT_SMP=0 \
+ USE_LOCAL_HEADERS=0 \
+ GENERATE_DEPENDENCIES=0 \
+ OPTIMIZE=
+}
+
+package() {
+ cd $srcdir/$pkgname-engine-$_oldver
+
+ install -d $pkgdir/usr/{bin,share/{$pkgname,applications,pixmaps}}
+
+ make COPYDIR=$pkgdir/usr/share/$pkgname copyfiles
+
+ [ "$CARCH" = "x86_64" ] && {
+ mv -f $pkgdir/usr/share/$pkgname/$pkgname.$CARCH $pkgdir/usr/bin/$pkgname
+ mv -f $pkgdir/usr/share/$pkgname/oa_ded.$CARCH $pkgdir/usr/bin/$pkgname-server
+ } || {
+ mv -f $pkgdir/usr/share/$pkgname/$pkgname.i386 $pkgdir/usr/bin/$pkgname
+ mv -f $pkgdir/usr/share/$pkgname/oa_ded.i386 $pkgdir/usr/bin/$pkgname-server
+ }
+
+ find $pkgdir/usr/share -type f -exec chmod 644 {} +
+
+ install -m 644 $srcdir/$pkgname{,-server}.png $pkgdir/usr/share/pixmaps/
+ install -m 644 $srcdir/$pkgname{,-server}.desktop $pkgdir/usr/share/applications/
+}
+
+# vim: sw=2:ts=2 et:
diff --git a/community/openarena/openarena-server.desktop b/community/openarena/openarena-server.desktop
new file mode 100644
index 000000000..47bc786a2
--- /dev/null
+++ b/community/openarena/openarena-server.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=OpenArena Server
+Exec=openarena-server
+Icon=openarena-server
+Type=Application
+Terminal=true
+Comment=Run an OpenArena server
+Categories=Network;
diff --git a/community/openarena/openarena-server.png b/community/openarena/openarena-server.png
new file mode 100644
index 000000000..55c5177f5
--- /dev/null
+++ b/community/openarena/openarena-server.png
Binary files differ
diff --git a/community/openarena/openarena.desktop b/community/openarena/openarena.desktop
new file mode 100644
index 000000000..321461a32
--- /dev/null
+++ b/community/openarena/openarena.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=OpenArena
+Exec=openarena
+Icon=openarena
+Type=Application
+Comment=A Quake3-based FPS Game
+Categories=Game;ActionGame;
diff --git a/community/openarena/openarena.png b/community/openarena/openarena.png
new file mode 100644
index 000000000..0fa1f4ec3
--- /dev/null
+++ b/community/openarena/openarena.png
Binary files differ
diff --git a/community/openarena/strcpy-memmove.patch b/community/openarena/strcpy-memmove.patch
new file mode 100644
index 000000000..0123af61a
--- /dev/null
+++ b/community/openarena/strcpy-memmove.patch
@@ -0,0 +1,20 @@
+--- code/botlib/l_script.c.orig 2009-11-02 20:29:23.000000000 +0100
++++ code/botlib/l_script.c 2009-11-02 22:21:40.000000000 +0100
+@@ -1118,7 +1118,7 @@
+ {
+ if (*string == '\"')
+ {
+- strcpy(string, string+1);
++ memmove(string, string+1, strlen(string));
+ } //end if
+ if (string[strlen(string)-1] == '\"')
+ {
+@@ -1135,7 +1135,7 @@
+ {
+ if (*string == '\'')
+ {
+- strcpy(string, string+1);
++ memmove(string, string+1, strlen(string));
+ } //end if
+ if (string[strlen(string)-1] == '\'')
+ {