mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/ioquake3: Updated for version r20131127, added a license.
Various cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
277283e930
commit
3bbf957da1
2 changed files with 31 additions and 30 deletions
|
@ -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
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
PRGNAM="ioquake3"
|
||||
VERSION="r2252"
|
||||
VERSION="r20131127"
|
||||
HOMEPAGE="http://ioquake3.org/"
|
||||
DOWNLOAD="http://dl.dropbox.com/u/85079539/ioquake3-r2252.tar.gz \
|
||||
DOWNLOAD="https://dl.dropboxusercontent.com/u/85079539/ioquake3-r20131127.tar.gz \
|
||||
http://files.matchlessgaming.com/misc/quake3-latest-pk3s.zip"
|
||||
MD5SUM="04d0bbcee8e97a352bab2030648cd632 \
|
||||
MD5SUM="63dec5d5862f5a66b8fda6421af8324b \
|
||||
308929f1a6b7068c9912c0759e3b0695"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="M.Dinslage"
|
||||
REQUIRES="OpenAL"
|
||||
MAINTAINER="M.Dinslage"
|
||||
EMAIL="daedra1980@gmail.com"
|
||||
|
||||
|
|
Loading…
Reference in a new issue