From 19320515c929a86327da42b1322b93e80260ddfb Mon Sep 17 00:00:00 2001 From: Zachary Slater Date: Tue, 19 Oct 2010 06:40:49 +0000 Subject: [PATCH] Bug 4566: Slackbuild update for 64bit. --- misc/setup/ioquake3.SlackBuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/misc/setup/ioquake3.SlackBuild b/misc/setup/ioquake3.SlackBuild index af261b72..187d58b5 100644 --- a/misc/setup/ioquake3.SlackBuild +++ b/misc/setup/ioquake3.SlackBuild @@ -23,6 +23,12 @@ PKG_VERSION=$VERSION 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 @@ mkdir -p $PKG/usr/bin 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 @@ mkdir -p $PKG/usr/bin 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 @@ mkdir -p $PKG/install 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