mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-22 20:11:48 +00:00
7fb48b29ca
Update arch in misc/setup for ioq3 changing from i386 to x86 OpenGL2: Use extension functions with OpenGL versions before 3.0. OpenGL2: Force VAO usage on OpenGL 3.0+ Add spawnflags to QUAKED for trigger_multiple Check for all command separators in callTeamVote Remove newlines from chat messages in Game VM Fix compiling Cmd_CallTeamVote_f Only allow safe protocols for cURL downloads Fix crash when pmove_msec is 0 Combine mouse movement events in event queue Improve keys using international key layouts Improve client input responsiveness Removing input functions from sys_local.h for last commit Make input events use earliest possible time Make bots use crusher on other q3tourney6 maps Make bots only use q3tourney6 crusher to kill their enemy
83 lines
1.6 KiB
Bash
83 lines
1.6 KiB
Bash
#!/bin/sh
|
|
|
|
CWD=`pwd`
|
|
BASE=$CWD/../..
|
|
if [ "$TMP" = "" ]; then
|
|
TMP=/tmp
|
|
fi
|
|
|
|
# clean, update
|
|
make -C $BASE clean || exit 1
|
|
svn up $BASE || exit 1
|
|
|
|
# extract version info
|
|
VERSION=`grep "\#define *PRODUCT_VERSION" $BASE/code/qcommon/q_shared.h | \
|
|
sed -e 's/[^"]*"\(.*\)"/\1/'`
|
|
|
|
SVN_REV=`LANG=C svnversion $BASE`
|
|
if [ ! "$SVN_REV" = "" ]; then
|
|
VERSION=${VERSION}_SVN${SVN_REV}
|
|
fi
|
|
|
|
PKG_VERSION=$VERSION
|
|
|
|
ARCH=${ARCH:-i586}
|
|
|
|
if [ "$ARCH" = "i?86" ]; then
|
|
ARCHSUFFIX="x86"
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
ARCHSUFFIX="x86_64"
|
|
fi
|
|
|
|
BUILD=${BUILD:-1_io}
|
|
|
|
APP=ioquake3
|
|
|
|
PKG=$TMP/package-$APP
|
|
|
|
rm -rf $PKG
|
|
mkdir -p $PKG
|
|
|
|
# build
|
|
make -C $BASE release copyfiles COPYDIR="$PKG"/usr/games/$APP|| exit 1
|
|
|
|
# copy additional files
|
|
cp $BASE/BUGS $BASE/COPYING.txt $BASE/ChangeLog $BASE/README $PKG/usr/games/$APP/
|
|
cat $CWD/$APP.SlackBuild > $PKG/usr/games/$APP/$APP.SlackBuild
|
|
|
|
mkdir -p $PKG/usr/share/$APP/icons
|
|
cp $BASE/misc/quake3.png $PKG/usr/share/$APP/icons/ioquake3.png
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
cat >> $PKG/usr/bin/ioquake3 << EOF
|
|
#!/bin/sh
|
|
cd /usr/games/$APP/
|
|
./ioquake3.${ARCHSUFFIX} \$*
|
|
exit \$?
|
|
EOF
|
|
chmod 754 $PKG/usr/bin/ioquake3
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
cat >> $PKG/usr/bin/ioq3ded << EOF
|
|
#!/bin/sh
|
|
cd /usr/games/$APP/
|
|
./ioq3ded.${ARCHSUFFIX} \$*
|
|
exit \$?
|
|
EOF
|
|
chmod 754 $PKG/usr/bin/ioq3ded
|
|
|
|
mkdir -p $PKG/install
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cat >> $PKG/install/doinst.sh << EOF
|
|
chmod 754 /usr/games/$APP/*.${ARCHSUFFIX}
|
|
chmod 754 /usr/bin/ioquake3 /usr/bin/ioq3ded
|
|
EOF
|
|
chmod +x $PKG/install/doinst.sh
|
|
|
|
pushd $PKG
|
|
chown -R root:root install/ || exit 1
|
|
chown -R root:games usr/ || exit 1
|
|
/sbin/makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-$BUILD.tgz
|
|
popd
|
|
|