diff options
author | B. Watson <yalhcru@gmail.com> | 2020-04-14 01:52:13 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-19 10:52:24 +0700 |
commit | 974bceb7acae65baac22d0872d20a451aabbf90a (patch) | |
tree | 889a2c000efd9620c69c477e8044f567cec58989 /games/doomretro/doomretro.SlackBuild | |
parent | 2e438af4f87dda8adf1a7beb8bdf5b629a2bb743 (diff) | |
download | slackbuilds-974bceb7acae65baac22d0872d20a451aabbf90a.tar.gz |
games/doomretro: Updated for version 3.5.4, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/doomretro/doomretro.SlackBuild')
-rw-r--r-- | games/doomretro/doomretro.SlackBuild | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/games/doomretro/doomretro.SlackBuild b/games/doomretro/doomretro.SlackBuild index 54ffb3e806..6b7c29d392 100644 --- a/games/doomretro/doomretro.SlackBuild +++ b/games/doomretro/doomretro.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for doomretro # Copyright 2017 Dugan Chen Canada +# Copyright 2020 B. Watson # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,8 +23,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20200413 bkw: +# - take over maintenance +# - update for v3.5.4 +# - move binary to /usr/games +# - include wrapper script + +# *** RANT MODE ON*** +# Every Doom engine on the planet besides this one attempts to load *some* +# IWAD file, if you don't give it one on the command line. But this one is +# supposed to pop up a file dialog to let you choose one. Only the dialog +# code hasn't been ported to Linux. So for us, unlike *all other* Doom +# source ports, we *must* specify the IWAD file on the command line. So I +# have to use a wrapper script to make it act like a normal Doom engine... +# *** RANT MODE OFF*** + PRGNAM=doomretro -VERSION=${VERSION:-2.9.3} +VERSION=${VERSION:-3.5.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,14 +76,19 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz + +# All these --excludes save ~30MB in /tmp, and avoid the recursive chmod +# tripping over broken symlinks. +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz \ + --exclude=xcode \ + --exclude=codeblocks \ + --exclude=msvc \ + --exclude=SDL2\* + cd $PRGNAM-$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 640 -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 {} \+ mkdir -p build cd build @@ -76,11 +97,13 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -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/games +mv $PKG/usr/bin/$PRGNAM $PKG/usr/games/$PRGNAM.bin +rm -rf $PKG/usr/bin +install -m0755 -oroot -groot $CWD/$PRGNAM.sh $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop @@ -92,8 +115,7 @@ convert res/$PRGNAM.ico[2] $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png convert res/$PRGNAM.ico[3] $PKG/usr/share/icons/hicolor/24x24/apps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CODEOWNERS LICENSE *.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CODEOWNERS LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |