From 0ce644acc46cc9a428753bb94b0158786f3dd253 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 26 Apr 2020 04:05:27 -0400 Subject: [PATCH] games/gzdoom-legacy: Fix window title. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/gzdoom-legacy/gzdoom-legacy.SlackBuild | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/games/gzdoom-legacy/gzdoom-legacy.SlackBuild b/games/gzdoom-legacy/gzdoom-legacy.SlackBuild index 295f2dcc18..34b01f39f1 100644 --- a/games/gzdoom-legacy/gzdoom-legacy.SlackBuild +++ b/games/gzdoom-legacy/gzdoom-legacy.SlackBuild @@ -6,6 +6,9 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20200426 bkw: +# - Fix in window title for real this time, BUILD=2. + # 20170610 bkw: # - Renamed to gzdoom-legacy. Too much effort to keep testing old # gzdoom versions every time there's a new release, so the regular @@ -33,7 +36,7 @@ PRGNAM=gzdoom-legacy SRCNAM=gzdoom VERSION=${VERSION:-2.4.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -75,11 +78,8 @@ tar xvf $CWD/$SRCNAM-g$VERSION.tar.gz || \ tar xvf $CWD/$VERSION.tar.gz cd $SRCNAM-g$VERSION || cd $SRCNAM-$VERSION 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # fmodapi support tries to find its lib in the current dir, fix it: sed -i \ @@ -95,7 +95,7 @@ patch -p1 < $CWD/window_title_version.diff # Sometimes upstream forgets to bump the version number, so the window # title will read 1.8.08 for version 1.8.09, eg. -sed -i "/#define *VERSIONSTR/s,\"[^\"]*\",\"$VERSION\"," src/version.h +sed -i "/#define *VERSIONSTR/s,[^ ]*$,\"$VERSION\"," src/version.h # This isn't currently used, but was in the past, and will be again I'm sure. [ -e $CWD/compilefix.$VERSION.diff ] && \