[quake3-commits] r1798 - trunk/misc/setup

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Oct 19 02:40:49 EDT 2010


Author: zakk
Date: 2010-10-19 02:40:49 -0400 (Tue, 19 Oct 2010)
New Revision: 1798

Modified:
   trunk/misc/setup/ioquake3.SlackBuild
Log:
Bug 4566: Slackbuild update for 64bit.


Modified: trunk/misc/setup/ioquake3.SlackBuild
===================================================================
--- trunk/misc/setup/ioquake3.SlackBuild	2010-10-12 06:27:27 UTC (rev 1797)
+++ trunk/misc/setup/ioquake3.SlackBuild	2010-10-19 06:40:49 UTC (rev 1798)
@@ -23,6 +23,12 @@
 
 ARCH=${ARCH:-i586}
 
+if [ "$ARCH" = "i?86" ]; then
+  ARCHSUFFIX="i386"
+elif [ "$ARCH" = "x86_64" ]; then
+  ARCHSUFFIX="64"
+fi
+
 BUILD=${BUILD:-1_io}
 
 APP=ioquake3
@@ -46,7 +52,7 @@
 cat >> $PKG/usr/bin/ioquake3 << EOF
 #!/bin/sh
 cd /usr/games/$APP/
-./ioquake3.i386 \$*
+./ioquake3.${ARCHSUFFIX} \$*
 exit \$? 
 EOF
 chmod 754 $PKG/usr/bin/ioquake3
@@ -55,7 +61,7 @@
 cat >> $PKG/usr/bin/ioq3ded << EOF
 #!/bin/sh
 cd /usr/games/$APP/
-./ioq3ded.i386 \$*
+./ioq3ded.${ARCHSUFFIX} \$*
 exit \$? 
 EOF
 chmod 754 $PKG/usr/bin/ioq3ded
@@ -64,7 +70,7 @@
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
 cat >> $PKG/install/doinst.sh << EOF
-chmod 754 /usr/games/$APP/*.i386
+chmod 754 /usr/games/$APP/*.${ARCHSUFFIX}
 chmod 754 /usr/bin/ioquake3 /usr/bin/ioq3ded
 EOF
 chmod +x $PKG/install/doinst.sh



More information about the quake3-commits mailing list