diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-30 15:32:01 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-07 13:59:18 +0700 |
commit | db17b86e86547f3766c9654a0d4043c77bb2b1ff (patch) | |
tree | 0b65632ac47f36e240cedacc8acc161551bba02f /games/waterCloset | |
parent | 2cad8c2a222a3e17b747a682e60311ba4db6997e (diff) | |
download | slackbuilds-db17b86e86547f3766c9654a0d4043c77bb2b1ff.tar.gz |
games/waterCloset: Fix doinst and desktop nitpicks.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/waterCloset')
-rw-r--r-- | games/waterCloset/doinst.sh | 5 | ||||
-rw-r--r-- | games/waterCloset/waterCloset.SlackBuild | 16 |
2 files changed, 16 insertions, 5 deletions
diff --git a/games/waterCloset/doinst.sh b/games/waterCloset/doinst.sh index 4e8ba7071d..3e5691a052 100644 --- a/games/waterCloset/doinst.sh +++ b/games/waterCloset/doinst.sh @@ -2,3 +2,8 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/waterCloset/waterCloset.SlackBuild b/games/waterCloset/waterCloset.SlackBuild index 48ecaeed40..c97048f28b 100644 --- a/games/waterCloset/waterCloset.SlackBuild +++ b/games/waterCloset/waterCloset.SlackBuild @@ -9,15 +9,19 @@ # fix doc dir for slackware defaults. # 06/02/2020. version 1.0 first major "full" version. +# 20220430 bkw: Modified by SlackBuilds.org, BUILD=2: +# - update icon cache in doinst.sh. +# - make .desktop file validate. +# Note to maintainer: consider putting the binary in /usr/games, since +# this is a game... # 20220221 bkw: Modified by SlackBuilds.org: fix incorrect github URL. # 20220323 bkw: Modified by SlackBuilds.org: fix 32-bit build. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=waterCloset -GITNAM=wc VERSION=${VERSION:-1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,11 +73,13 @@ find -L . \ # 20220323 bkw: 32-bit needs this. sed -i 's,-Werror[^ ]*, ,g' makefile +# 20220430 bkw: this didn't hurt anything, but it produces noise from +# sbopkglint and it costs almost nothing to fix: +sed -i '/^Encoding/d' icons/$PRGNAM.desktop + make make install DESTDIR=$PKG - -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 +strip $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |