mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Bug 4566: Slackbuild update for 64bit.
This commit is contained in:
parent
edb7cd9840
commit
19320515c9
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue