From 5ba3fe7ae8c3264b33d62330e506ec762943e963 Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Wed, 7 Mar 2018 12:28:45 +0000 Subject: games/solarus-quest-editor: Patched to add a png logo. Signed-off-by: David Spencer --- games/solarus-quest-editor/pixmaps.patch.gz | Bin 0 -> 535 bytes .../solarus-quest-editor.SlackBuild | 19 ++++++------------- 2 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 games/solarus-quest-editor/pixmaps.patch.gz (limited to 'games/solarus-quest-editor') diff --git a/games/solarus-quest-editor/pixmaps.patch.gz b/games/solarus-quest-editor/pixmaps.patch.gz new file mode 100644 index 0000000000..d0d77fbfa7 Binary files /dev/null and b/games/solarus-quest-editor/pixmaps.patch.gz differ diff --git a/games/solarus-quest-editor/solarus-quest-editor.SlackBuild b/games/solarus-quest-editor/solarus-quest-editor.SlackBuild index 2a77ee1c16..6acf4d0e00 100644 --- a/games/solarus-quest-editor/solarus-quest-editor.SlackBuild +++ b/games/solarus-quest-editor/solarus-quest-editor.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for solarus-quest-editor -# Copyright 2015-2017 Hunter Sezen California, USA +# Copyright 2015-2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=solarus-quest-editor VERSION=${VERSION:-1.5.3} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,10 @@ find -L . \ # https://github.com/solarus-games/solarus-quest-editor/commit/6bb12e5e6029652e471054b71487ad9777b5d3d7 zcat $CWD/assets.patch | patch -p1 +# Install a png logo to pixmaps +# https://github.com/solarus-games/solarus-quest-editor/pull/298 +zcat $CWD/pixmaps.patch | patch -p1 + mkdir -p build cd build cmake \ @@ -86,20 +90,9 @@ cd build make install DESTDIR=$PKG cd .. -install -Dm0644 images/logo/sqe-logo.png $PKG/usr/share/pixmaps/sqe-logo.png -install -Dm0644 resources/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop - 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 -# Add missing icons to package -for pngicon in images/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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a changelog.txt license*.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3