aboutsummaryrefslogtreecommitdiff
path: root/games/hatari/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-08-26 12:19:19 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-30 14:22:21 +0700
commit3114a6842f0ec052e496a4843853cfd31f8e9408 (patch)
treea40872bb13155c8e37246457f0c95f8d57794183 /games/hatari/doinst.sh
parent4ee8ba718a99985e27acfe8bc3610058af3fb3b8 (diff)
games/hatari: Updated for version 1.8.0.
Better desktop integration, script cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/hatari/doinst.sh')
-rw-r--r--games/hatari/doinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/games/hatari/doinst.sh b/games/hatari/doinst.sh
index 3e5691a052b5b..ae52932a11ad0 100644
--- a/games/hatari/doinst.sh
+++ b/games/hatari/doinst.sh
@@ -1,3 +1,7 @@
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
@@ -7,3 +11,8 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+# if there's no tos.img symlink, take over with emutos.img
+if [ ! -r usr/share/hatari/tos.img ]; then
+ ( cd usr/share/hatari ; ln -sf emutos.img tos.img )
+fi