summaryrefslogtreecommitdiff
path: root/community/openarena
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-06 23:14:44 +0000
committerroot <root@rshg054.dnsready.net>2011-12-06 23:14:44 +0000
commitd1d87d2ac643e3dabc251f3cec7d3b00e29b282c (patch)
tree09d9025934fe06bd25753f98cf2eab3140456cc3 /community/openarena
parent55d1e19e71b453a0f47c599f281a2ad2644247d2 (diff)
Tue Dec 6 23:14:44 UTC 2011
Diffstat (limited to 'community/openarena')
-rw-r--r--community/openarena/PKGBUILD12
-rw-r--r--community/openarena/strcpy-memmove.patch20
2 files changed, 28 insertions, 4 deletions
diff --git a/community/openarena/PKGBUILD b/community/openarena/PKGBUILD
index 92f486fd8..3ddebdcf4 100644
--- a/community/openarena/PKGBUILD
+++ b/community/openarena/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 23332 2010-08-10 01:00:21Z svenstaro $
+# $Id: PKGBUILD 60141 2011-12-05 22:52:51Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
@@ -6,7 +6,7 @@
pkgname=openarena
pkgver=0.8.5
_oldver=0.8.1
-pkgrel=2
+pkgrel=3
pkgdesc="A violent, sexy, multiplayer first person shooter based on the ioquake3 engine"
arch=('i686' 'x86_64')
url="http://openarena.ws/"
@@ -19,14 +19,16 @@ source=(http://download.tuxfamily.org/$pkgname/rel/081/oa081.zip
$pkgname.png
$pkgname-server.png
$pkgname.desktop
- $pkgname-server.desktop)
+ $pkgname-server.desktop
+ strcpy-memmove.patch)
md5sums=('49006bcb02b4e8ea3d06749e8f4e4887'
'b2a0437da751cd50dd2351ed9e0c4e9d'
'4ee696eacc4b0350f9dbb5588dcd74a2'
'c69f824dc500d436fc631b78b6a62dc8'
'17e2f4fa060ed97ff6fe1eaff647bcfb'
'229c87648c10e48b523c25d24aba8372'
- '00649517a4dd08cd9c6e99d6703f01f1')
+ '00649517a4dd08cd9c6e99d6703f01f1'
+ '723ec16d949f454588d62da499bbefca')
build() {
# uncomment to disable semi-nude models:
@@ -35,6 +37,8 @@ build() {
cd $srcdir/$pkgname-engine-$_oldver
+ patch -Np0 < $srcdir/strcpy-memmove.patch
+
make DEFAULT_BASEDIR=/usr/share/$pkgname \
BUILD_CLIENT_SMP=0 \
USE_LOCAL_HEADERS=0 \
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] == '\'')
+ {