mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 06:01:10 +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}
|
ARCH=${ARCH:-i586}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i?86" ]; then
|
||||||
|
ARCHSUFFIX="i386"
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
ARCHSUFFIX="64"
|
||||||
|
fi
|
||||||
|
|
||||||
BUILD=${BUILD:-1_io}
|
BUILD=${BUILD:-1_io}
|
||||||
|
|
||||||
APP=ioquake3
|
APP=ioquake3
|
||||||
|
@ -46,7 +52,7 @@ mkdir -p $PKG/usr/bin
|
||||||
cat >> $PKG/usr/bin/ioquake3 << EOF
|
cat >> $PKG/usr/bin/ioquake3 << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /usr/games/$APP/
|
cd /usr/games/$APP/
|
||||||
./ioquake3.i386 \$*
|
./ioquake3.${ARCHSUFFIX} \$*
|
||||||
exit \$?
|
exit \$?
|
||||||
EOF
|
EOF
|
||||||
chmod 754 $PKG/usr/bin/ioquake3
|
chmod 754 $PKG/usr/bin/ioquake3
|
||||||
|
@ -55,7 +61,7 @@ mkdir -p $PKG/usr/bin
|
||||||
cat >> $PKG/usr/bin/ioq3ded << EOF
|
cat >> $PKG/usr/bin/ioq3ded << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /usr/games/$APP/
|
cd /usr/games/$APP/
|
||||||
./ioq3ded.i386 \$*
|
./ioq3ded.${ARCHSUFFIX} \$*
|
||||||
exit \$?
|
exit \$?
|
||||||
EOF
|
EOF
|
||||||
chmod 754 $PKG/usr/bin/ioq3ded
|
chmod 754 $PKG/usr/bin/ioq3ded
|
||||||
|
@ -64,7 +70,7 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cat >> $PKG/install/doinst.sh << EOF
|
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
|
chmod 754 /usr/bin/ioquake3 /usr/bin/ioq3ded
|
||||||
EOF
|
EOF
|
||||||
chmod +x $PKG/install/doinst.sh
|
chmod +x $PKG/install/doinst.sh
|
||||||
|
|
Loading…
Reference in a new issue