summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Jeremy Hansen <jebrhansen+github@gmail.com>2020-10-12 03:45:00 -0600
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-17 08:19:20 +0700
commit4ef60ef656d1e5f3977d7c33056748a4f516f801 (patch)
treed2430615315318a3663a72e7d4d38a403def3fbc /games
parent2bd3ec8afa3612498fdc9e1f6594b57ca00ce60b (diff)
downloadslackbuilds-4ef60ef656d1e5f3977d7c33056748a4f516f801.tar.gz
slackbuilds-4ef60ef656d1e5f3977d7c33056748a4f516f801.tar.xz
games/stuntrally: Switch to binary release until ported to ogre-1.11+
StuntRally does not currently work on ogre-1.11+. Attempts at adding patches allows compiling, but leads to a segfault when launching. This is a temporary measure to allow ogre to be upgraded to a newer version without breaking this program. Once the port to 1.11+ is completed, StuntRally will be reverted back to a source compile. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/stuntrally/README8
-rw-r--r--games/stuntrally/stuntrally.SlackBuild33
-rw-r--r--games/stuntrally/stuntrally.info10
3 files changed, 21 insertions, 30 deletions
diff --git a/games/stuntrally/README b/games/stuntrally/README
index 92453e9b38..2fd05bfdaa 100644
--- a/games/stuntrally/README
+++ b/games/stuntrally/README
@@ -1,6 +1,6 @@
stuntrally (game based on VDrift and OGRE, with Track Editor)
-The game features 172 tracks in 34 sceneries and 25 vehicles. Game
+The game features 191 tracks in 34 sceneries and 28 vehicles. Game
modes include: single race, tutorials, championships, challenges,
multiplayer and split screen. Replays and Ghost drive are available.
The Track Editor allows creating and modifying tracks.
@@ -8,7 +8,5 @@ The Track Editor allows creating and modifying tracks.
The game aims at a rally style of driving (like in Richard Burns
Rally), with possible stunt elements (jumps, loops, pipes).
-Required Dependency
-
-ogre needs to be built with FreeImage for stuntrally to work. If you
-built ogre prior to installing FreeImage, you will need to rebuild ogre.
+This is currently repackaging the binary version until stuntrally can be
+ported to ogre-1.11+.
diff --git a/games/stuntrally/stuntrally.SlackBuild b/games/stuntrally/stuntrally.SlackBuild
index 60d2a75f68..c3a8131f99 100644
--- a/games/stuntrally/stuntrally.SlackBuild
+++ b/games/stuntrally/stuntrally.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for stuntrally
-# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
+# Copyright 2017-2020 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=stuntrally
-VERSION=${VERSION:-2.6.1}
+SRCNAM=StuntRally
+VERSION=${VERSION:-2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,35 +60,29 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
-tar xvf $CWD/tracks-$VERSION.tar.gz
-mv tracks-$VERSION/ data/tracks
+rm -rf $SRCNAM-$VERSION-linux64
+tar xvf $CWD/$SRCNAM-$VERSION-linux.tar.gz
+cd $SRCNAM-$VERSION-linux64
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-mkdir -p build
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -fpermissive" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DCMAKE_BUILD_TYPE=Release ..
- make
- make install DESTDIR=$PKG
cd ..
+mkdir -p $PKG/{opt/$PRGNAM/,usr/bin/}
+cp -r StuntRally-$VERSION-linux64/* $PKG/opt/$PRGNAM/
+
+cd $PKG
+ln -s /opt/$PRGNAM/stuntrally usr/bin/
+ln -s /opt/$PRGNAM/sr-editor usr/bin/
+mv opt/$PRGNAM/share usr/
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a License.txt Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a opt/$PRGNAM/License.txt opt/$PRGNAM/Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/games/stuntrally/stuntrally.info b/games/stuntrally/stuntrally.info
index 3b8f7ca2a4..72700ca438 100644
--- a/games/stuntrally/stuntrally.info
+++ b/games/stuntrally/stuntrally.info
@@ -1,12 +1,10 @@
PRGNAM="stuntrally"
-VERSION="2.6.1"
+VERSION="2.6"
HOMEPAGE="http://stuntrally.tuxfamily.org/"
-DOWNLOAD="https://github.com/stuntrally/stuntrally/archive/2.6.1/stuntrally-2.6.1.tar.gz \
- https://github.com/stuntrally/tracks/archive/2.6.1/tracks-2.6.1.tar.gz"
-MD5SUM="03f64cd2724d51888d42da3208710c65 \
- fc075a198ad2ec4bf4b4739010761a25"
+DOWNLOAD="http://downloads.sourceforge.net/stuntrally/2.6/StuntRally-2.6-linux.tar.gz"
+MD5SUM="5be1af1b727af2bc7f5bd5e34c2deb8a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="MyGUI SDL2 enet bullet OpenAL FreeImage"
+REQUIRES=""
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"