diff options
Diffstat (limited to 'games/speed-dreams/speed-dreams.SlackBuild')
-rw-r--r-- | games/speed-dreams/speed-dreams.SlackBuild | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/games/speed-dreams/speed-dreams.SlackBuild b/games/speed-dreams/speed-dreams.SlackBuild index 3887ecbb24..16a75f8448 100644 --- a/games/speed-dreams/speed-dreams.SlackBuild +++ b/games/speed-dreams/speed-dreams.SlackBuild @@ -1,12 +1,18 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for the game Speed Dreams # written by powtrix (@gmail.com) +# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0, +# by updating to v2.2.3_r7616. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=speed-dreams -VERSION=${VERSION:-2.2.2_rc2_r6527} +VERSION=${VERSION:-2.2.3_r7616} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCVERSION=$(echo $VERSION | tr _ -) @@ -18,7 +24,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -49,14 +59,13 @@ tar xvf $CWD/$PRGNAM-src-base-$SRCVERSION.tar.xz tar xvf $CWD/$PRGNAM-src-hq-cars-and-tracks-$SRCVERSION.tar.xz tar xvf $CWD/$PRGNAM-src-more-hq-cars-and-tracks-$SRCVERSION.tar.xz tar xvf $CWD/$PRGNAM-src-wip-cars-and-tracks-$SRCVERSION.tar.xz -tar xvf $CWD/$PRGNAM-src-unmaintained-$SRCVERSION.tar.xz 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ mkdir build cd build @@ -96,4 +105,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-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |