diff options
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 |
commit | 4ef60ef656d1e5f3977d7c33056748a4f516f801 (patch) | |
tree | d2430615315318a3663a72e7d4d38a403def3fbc /games/stuntrally/stuntrally.SlackBuild | |
parent | 2bd3ec8afa3612498fdc9e1f6594b57ca00ce60b (diff) |
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/stuntrally/stuntrally.SlackBuild')
-rw-r--r-- | games/stuntrally/stuntrally.SlackBuild | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/games/stuntrally/stuntrally.SlackBuild b/games/stuntrally/stuntrally.SlackBuild index 60d2a75f685a9..c3a8131f9952c 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 |