aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/stuntrally/sr-editor3.desktop18
-rw-r--r--games/stuntrally/stuntrally.SlackBuild67
-rw-r--r--games/stuntrally/stuntrally.info10
-rw-r--r--games/stuntrally/stuntrally3.desktop15
4 files changed, 72 insertions, 38 deletions
diff --git a/games/stuntrally/sr-editor3.desktop b/games/stuntrally/sr-editor3.desktop
new file mode 100644
index 0000000000..f928e70051
--- /dev/null
+++ b/games/stuntrally/sr-editor3.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Stunt Rally 3 Track Editor
+Name[fr]=Éditeur de circuits Stunt Rally 3
+Name[de]=Stunt Rally 3 Streckeneditor
+GenericName=Track editor
+GenericName[de]=Streckeneditor
+GenericName[fr]=Éditeur de circuits
+Comment=Track editor for Stunt Rally
+Comment[de]=Stunt Rally 3 Streckeneditor
+Comment[fi]=Stunt Rally 3 rataeditori
+Comment[fr]=Éditez des circuits pour Stunt Rally
+Exec=sr-editor3
+Icon=sr-editor
+StartupNotify=false
+Terminal=false
+PrefersNonDefaultGPU=true
+Type=Application
+Categories=Game;SportsGame;
diff --git a/games/stuntrally/stuntrally.SlackBuild b/games/stuntrally/stuntrally.SlackBuild
index bcec5d68ee..290ec33a49 100644
--- a/games/stuntrally/stuntrally.SlackBuild
+++ b/games/stuntrally/stuntrally.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for stuntrally
-# Copyright 2017-2020 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
+# Copyright 2017-2025 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,16 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20220501 bkw: Modified by SlackBuilds.org, BUILD=2:
-# - only package the correct set of binaries/libraries (32-bit or 64-bit).
-# - make .desktop files validate (mostly).
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stuntrally
SRCNAM=StuntRally
-VERSION=${VERSION:-2.6}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,10 +39,10 @@ if [ -z "$ARCH" ]; then
esac
fi
-case "$ARCH" in
- i?86|x86_64) ;;
- *) echo "ARCH=$ARCH unsupported" ;;
-esac
+if [ "$ARCH" != "x86_64" ]; then
+ echo "ERROR: StuntRally's pre-built binaries only support x86_64."
+ exit 1
+fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
@@ -62,9 +58,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION-linux64
-tar xvf $CWD/$SRCNAM-$VERSION-linux.tar.gz
-cd $SRCNAM-$VERSION-linux64
+rm -rf $SRCNAM-$VERSION-Linux
+tar xvf $CWD/$SRCNAM-$VERSION-Linux.txz
+cd $SRCNAM-$VERSION-Linux
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,32 +68,37 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
cd ..
-mkdir -p $PKG/{opt/$PRGNAM/,usr/bin/}
-cp -r StuntRally-$VERSION-linux64/* $PKG/opt/$PRGNAM/
+mkdir -p $PKG/opt $PKG/usr/{bin,share/{applications,icons/hicolor/512x512/apps}}
+
+mv $SRCNAM-$VERSION-Linux $PKG/opt/
+# Set up symlinks and make them executable so the .desktop files work
cd $PKG
-ln -s /opt/$PRGNAM/stuntrally usr/bin/
-ln -s /opt/$PRGNAM/sr-editor usr/bin/
-mv opt/$PRGNAM/share usr/
-rm -f $PKG/opt/$PRGNAM/lib/{32,64}/libstdc++.so.6
-
-# 20220501 bkw: x86_64 packages don't need the 32-bit exe and libs,
-# i?86 packages don't need the 64-bit ones. saves a bit of disk space.
-if [ "$ARCH" = "x86_64" ]; then
- rm -rf $PKG/opt/$PRGNAM/bin/*_x86 $PKG/opt/$PRGNAM/lib/32
-else
- rm -rf $PKG/opt/$PRGNAM/bin/*_x86_64 $PKG/opt/$PRGNAM/lib/64
-fi
+ln -s /opt/$SRCNAM-$VERSION-Linux/stuntrally3.sh usr/bin/stuntrally3
+ln -s /opt/$SRCNAM-$VERSION-Linux/sr-editor3.sh usr/bin/sr-editor3
+
+# Move desktop and icon files to correct locations
+cp $CWD/stuntrally3.desktop $CWD/sr-editor3.desktop $PKG/usr/share/applications
+cp -a $PKG/opt/$SRCNAM-$VERSION-Linux/data/gui/stuntrally.png \
+ $PKG/opt/$SRCNAM-$VERSION-Linux/data/gui/sr-editor.png \
+ $PKG/usr/share/icons/hicolor/512x512/apps/
+
+# Fix .desktop warning
+sed -i 's|Comment\[de\]=.*|Comment[de]=Streckeneditor für Stunt Rally|' $PKG/usr/share/applications/sr-editor3.desktop
+
+# Fix launching from /usr/bin symlink or .desktop files
+sed -i '/BINPATH\.*/a cd "$(FindPath $0)"' $PKG/opt/$SRCNAM-$VERSION-Linux/{stuntrally,sr-editor}3.sh
+
+# Correct permissions for all bundled libs
+find $PKG/opt/$SRCNAM-$VERSION-Linux/lib -type f -exec chmod 755 {} \+
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
-# 20220501 bkw: pacify desktop-file-validate somewhat.
-sed -i -e '/^Categories/s,Application;,,' \
- $PKG/usr/share/applications/*.desktop
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a opt/$PRGNAM/License.txt opt/$PRGNAM/Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ $PKG/opt/$SRCNAM-$VERSION-Linux/{License.txt,Readme.md} \
+ $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 72700ca438..e79ab5780c 100644
--- a/games/stuntrally/stuntrally.info
+++ b/games/stuntrally/stuntrally.info
@@ -1,10 +1,10 @@
PRGNAM="stuntrally"
-VERSION="2.6"
+VERSION="3.3"
HOMEPAGE="http://stuntrally.tuxfamily.org/"
-DOWNLOAD="http://downloads.sourceforge.net/stuntrally/2.6/StuntRally-2.6-linux.tar.gz"
-MD5SUM="5be1af1b727af2bc7f5bd5e34c2deb8a"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://sourceforge.net/projects/stuntrally/files/3.3/StuntRally-3.3-Linux.txz"
+MD5SUM_x86_64="65fe804e906ba9b298cfbda610bb8b05"
REQUIRES=""
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"
diff --git a/games/stuntrally/stuntrally3.desktop b/games/stuntrally/stuntrally3.desktop
new file mode 100644
index 0000000000..066adec508
--- /dev/null
+++ b/games/stuntrally/stuntrally3.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Name=Stunt Rally 3
+GenericName=Racing game
+GenericName[fr]=Jeu de course
+Comment=3D racing game with stunt and rally elements
+Comment[de]=3D-Rennspiel mit Stunt-Elementen
+Comment[fi]=3D Rallipeli stunttielementein
+Comment[fr]=Jeu de course en 3D avec des éléments acrobatiques
+Exec=stuntrally3
+Icon=stuntrally
+StartupNotify=false
+Terminal=false
+PrefersNonDefaultGPU=true
+Type=Application
+Categories=Game;SportsGame;