aboutsummaryrefslogtreecommitdiff
path: root/games/ioquake3/ioquake3.SlackBuild
diff options
context:
space:
mode:
authorM.Dinslage <daedra1980@gmail.com>2013-11-30 10:03:47 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-12-02 00:58:00 -0600
commit3bbf957da1a7c955d89a9ce672e2444e5db38268 (patch)
treefe86f6448fc5f0fc8ef45d8f3aea13fbb454d847 /games/ioquake3/ioquake3.SlackBuild
parent277283e9308c4fc18a9d4787d647c3bff5e181d1 (diff)
games/ioquake3: Updated for version r20131127, added a license.
Various cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/ioquake3/ioquake3.SlackBuild')
-rw-r--r--games/ioquake3/ioquake3.SlackBuild52
1 files changed, 27 insertions, 25 deletions
diff --git a/games/ioquake3/ioquake3.SlackBuild b/games/ioquake3/ioquake3.SlackBuild
index a1997a640232..33ab7789f75e 100644
--- a/games/ioquake3/ioquake3.SlackBuild
+++ b/games/ioquake3/ioquake3.SlackBuild
@@ -2,15 +2,35 @@
# Slackware build script for ioquake3
-# Written by M.Dinslage contact: daedra1980@gmail.com
+# Copyright 2012 Matt Dinslage (daedra1980@gmail.com), Springfield, MO, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ioquake3
-VERSION=r2252
+VERSION=r20131127
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Changing this to BARCH since we want the Makefile building
-# the binaries as close to the binary releases as possible.
+# Setting the arch here overrides the Makefiles
+# arch setting which causes the build to fail
+# on 32bit machines, so we change this to BARCH
+# here and let the Makefile set the ARCH.
if [ -z "$BARCH" ]; then
case "$( uname -m )" in
i?86) export BARCH=i486 ;;
@@ -31,13 +51,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
-
-if [ "${SMP:-NO}" = "NO" ]; then
- SMPOPT="0"
-else
- SMPOPT="1"
-fi
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -51,7 +65,7 @@ find -L . \
#CFLAGS="$SLKCFLAGS" \
#CXXFLAGS="$SLKCFLAGS" \
-make release copyfiles USE_CODEC_VORBIS=1 BUILD_CLIENT_SMP=$SMPOPT COPYDIR="$PKG"/usr/share/games/quake3 || exit 1
+make release copyfiles USE_CODEC_VORBIS=1 COPYDIR="$PKG"/usr/share/games/quake3
# update quake3 files to newest point release (1.32)
unzip $CWD/quake3-latest-pk3s.zip
@@ -67,20 +81,8 @@ mkdir $PKG/usr/games
cat $CWD/launcher.ioquake3 > $PKG/usr/games/ioquake3
chmod 0755 $PKG/usr/games/ioquake3
-# For some reason the installer doesn't seem to want to copy SMP executable
-# so we take care of it outselves :). Also lets change the .desktop file to
-# launch the SMP version.
-# This seems to be obsolete now, but I am going to leave it here
-# commented out for at least one more udpate "just incase"
-#if [ "${SMP:-NO}" = "NO" ]; then
-# SMP=""
-#else
-# cp $TMP/$PRGNAM/build/release-linux-*/ioquake3-smp.* $PKG/usr/share/games/quake3
-# sed -i 's,ioquake3.*,ioquake3-smp.*,g' $PKG/usr/games/ioquake3
-#fi
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a BUGS ChangeLog NOTTODO README TODO id-readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a BUGS ChangeLog NOTTODO README.md TODO id-readme.txt voip-readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install