aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-12-30 21:37:39 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-12-30 21:37:39 +0000
commitd007d5fde43e99e1c550e636f4243ad6a82da0ae (patch)
tree62cbd0f0e5221a7ac2c96b856a12267958d3963c /misc
parentf24195ccd9f206a748fb958fcbc49f0efa8b7c66 (diff)
downloadioquake3-aero-d007d5fde43e99e1c550e636f4243ad6a82da0ae.tar.gz
ioquake3-aero-d007d5fde43e99e1c550e636f4243ad6a82da0ae.zip
Slackbuild patch from Hobbes
git-svn-id: svn://svn.icculus.org/quake3/trunk@1242 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'misc')
-rw-r--r--misc/setup/ioquake3.SlackBuild77
-rw-r--r--misc/setup/slack-desc12
2 files changed, 89 insertions, 0 deletions
diff --git a/misc/setup/ioquake3.SlackBuild b/misc/setup/ioquake3.SlackBuild
new file mode 100644
index 0000000..af261b7
--- /dev/null
+++ b/misc/setup/ioquake3.SlackBuild
@@ -0,0 +1,77 @@
+#!/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}
+
+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.i386 \$*
+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.i386 \$*
+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/*.i386
+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
+
diff --git a/misc/setup/slack-desc b/misc/setup/slack-desc
new file mode 100644
index 0000000..c88b4bc
--- /dev/null
+++ b/misc/setup/slack-desc
@@ -0,0 +1,12 @@
+ |-----handy-ruler------------------------------------------------------|
+ioquake3: ioquake 3 - An open source Quake 3 distribution
+ioquake3:
+ioquake3: ioquake3 aims to build upon id Software's Quake 3 source code release.
+ioquake3: The source code was released on August 20, 2005 under the GPL. Since
+ioquake3: then code has been cleaned up, bugs have been fixed and features been
+ioquake3: added.
+ioquake3: The permanent goal is to create THE open source Quake 3 distribution
+ioquake3: upon which people base their games and projects.
+ioquake3:
+ioquake3: http://ioquake3.org/
+ioquake3: