Bug 4566: Slackbuild update for 64bit.

This commit is contained in:
Zachary Slater 2010-10-19 06:40:49 +00:00
parent edb7cd9840
commit 19320515c9

View file

@ -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