diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2018-03-07 13:32:17 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-10 07:11:03 +0700 |
commit | abf25458c1bc42f7fc0c48901eacc57295301552 (patch) | |
tree | 46fb003dfca10279f36a8af9931b6f091aab01f1 /games | |
parent | 54cc9e6e1196aa70435ae2147accda135ee6cbc0 (diff) |
games/zelda-roth-se: Patched.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/zelda-roth-se/cmake.patch.gz (renamed from games/zelda-roth-se/cmake.diff.gz) | bin | 611 -> 611 bytes | |||
-rw-r--r-- | games/zelda-roth-se/share.patch.gz | bin | 0 -> 987 bytes | |||
-rw-r--r-- | games/zelda-roth-se/zelda-roth-se.SlackBuild | 33 |
3 files changed, 8 insertions, 25 deletions
diff --git a/games/zelda-roth-se/cmake.diff.gz b/games/zelda-roth-se/cmake.patch.gz Binary files differindex fd6f1164809cf..fd6f1164809cf 100644 --- a/games/zelda-roth-se/cmake.diff.gz +++ b/games/zelda-roth-se/cmake.patch.gz diff --git a/games/zelda-roth-se/share.patch.gz b/games/zelda-roth-se/share.patch.gz Binary files differnew file mode 100644 index 0000000000000..d55a7a9b87021 --- /dev/null +++ b/games/zelda-roth-se/share.patch.gz diff --git a/games/zelda-roth-se/zelda-roth-se.SlackBuild b/games/zelda-roth-se/zelda-roth-se.SlackBuild index e6783bbf8a9ed..bfe1f9412311e 100644 --- a/games/zelda-roth-se/zelda-roth-se.SlackBuild +++ b/games/zelda-roth-se/zelda-roth-se.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Zelda Return of the Hylian Solarus Edition -# Copyright 2015-2016 Hunter Sezen California, USA +# Copyright 2015-2016, 2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=zelda-roth-se VERSION=${VERSION:-1.1.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -71,7 +71,11 @@ find -L . \ # Update cmake file to previous fixes from zsdx # https://github.com/solarus-games/zelda-roth-se/commit/e9b5bd907f5b50b17d65ebe2fa50760d322c537c -zcat $CWD/cmake.diff | patch -p1 +zcat $CWD/cmake.patch.gz | patch -p1 + +# Install icons and a desktop file. +# https://github.com/solarus-games/zelda-roth-se/pull/102 +zcat $CWD/share.patch.gz | patch -p1 mkdir -p build cd build @@ -86,27 +90,6 @@ cd build make install DESTDIR=$PKG cd .. -# Write a desktop file -mkdir -p $PKG/usr/share/applications -cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF -[Desktop Entry] -Name=Zelda Return of the Hylian -Exec=$(echo $PRGNAM | tr - _) -Icon=$PRGNAM-logo -Type=Application -Comment=Zelda Return of the Hylian (action rpg game) -Categories=Game;ActionGame; -EOF - -# Add missing icons to package -for pngicon in data/logos/icon_*.png ; do - if [ -f $pngicon ]; then - size=$(basename $pngicon .png | tr -dc 0-9) - install -Dm0644 $pngicon $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$PRGNAM.png - fi -done -install -Dm0644 data/logos/logo@2x.png $PKG/usr/share/pixmaps/$PRGNAM-logo.png - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a changelog.txt readme.md todo.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |