diff options
author | M.Dinslage <daedra1980@gmail.com> | 2021-02-06 08:00:31 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-02-07 01:39:52 +0700 |
commit | e59a3af7ae545dfcb68769d292e299a3b13a46c4 (patch) | |
tree | 5837ec38aba9118d1748b0a4ee616b52551b1d46 /games/ioquake3/ioquake3.SlackBuild | |
parent | c39e6ae255ff80c744d18894870ee387298d119f (diff) | |
download | slackbuilds-e59a3af7ae545dfcb68769d292e299a3b13a46c4.tar.gz |
games/ioquake3: Updated for version 1.36_05180e3.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/ioquake3/ioquake3.SlackBuild')
-rw-r--r-- | games/ioquake3/ioquake3.SlackBuild | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/games/ioquake3/ioquake3.SlackBuild b/games/ioquake3/ioquake3.SlackBuild index 843784f784..5c35ece70b 100644 --- a/games/ioquake3/ioquake3.SlackBuild +++ b/games/ioquake3/ioquake3.SlackBuild @@ -23,22 +23,16 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ioquake3 -VERSION=${VERSION:-r20200211} +VERSION=${VERSION:-1.36_05180e3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# 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 "$ARCH" ]; then case "$( uname -m )" in - i?86) export BARCH=i586 ;; - arm*) export BARCH=arm ;; - *) export BARCH=$( uname -m ) ;; + i?86) export ARCH=i586 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; esac -else - BARCH="$ARCH" fi CWD=$(pwd) @@ -46,22 +40,22 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$BARCH" = "i586" ]; then +if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" - ARCH="x86" -elif [ "$BARCH" = "i686" ]; then + BARCH="x86" +elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" - ARCH="x86" -elif [ "$BARCH" = "x86_64" ]; then + BARCH="x86" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - ARCH="x86_64" + BARCH="x86_64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" - ARCH="$BARCH" + BARCH="$ARCH" fi set -e @@ -82,7 +76,7 @@ find -L . \ make \ release \ copyfiles \ - ARCH="$ARCH" \ + ARCH="$BARCH" \ COPYDIR="$PKG"/usr/share/games/quake3 \ CFLAGS="$SLKCFLAGS" \ USE_CODEC_VORBIS=1 \ @@ -130,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$BARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |