diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-28 16:48:39 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:59 +0700 |
commit | 525da981b91367773a267dcd0ec42d124967e6a5 (patch) | |
tree | 958e5bcdf34f8b882f4af338ce53e2fc63a5a1f2 | |
parent | 9ca07b1a888c81e7e73bf7509249e8709829b490 (diff) |
games/dfarc: Add doinst.sh for icons and .desktop.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/dfarc/dfarc.SlackBuild | 8 | ||||
-rw-r--r-- | games/dfarc/doinst.sh | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/games/dfarc/dfarc.SlackBuild b/games/dfarc/dfarc.SlackBuild index 714b7a9b42e07..d8ae3f110740b 100644 --- a/games/dfarc/dfarc.SlackBuild +++ b/games/dfarc/dfarc.SlackBuild @@ -22,7 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20220222 bkw: Modified by SlackBuilds.org: +# 20230628 bkw: Modified by SlackBuilds.org, BUILD=3: +# - add doinst.sh with update-desktop-database and gtk-update-icon-cache. + +# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2: # - always use wxGTK3, regardless of wx-config symlink. # - fix .desktop. # - binary in /usr/games. @@ -31,7 +34,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dfarc VERSION=${VERSION:-3.14} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -126,6 +129,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/dfarc/doinst.sh b/games/dfarc/doinst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/games/dfarc/doinst.sh @@ -0,0 +1,9 @@ +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |