summaryrefslogtreecommitdiff
path: root/games/mangband/doinst.sh
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2017-05-22 16:16:09 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-05-27 07:30:45 +0700
commitae342414f16bfb757ae217b2dc0bad3cf4896e88 (patch)
tree650f7729f8362f8470a35a85c462bbc882eacfc6 /games/mangband/doinst.sh
parent969e85c89888fdf169a536a54cbfc187690bf6a4 (diff)
downloadslackbuilds-ae342414f16bfb757ae217b2dc0bad3cf4896e88.tar.gz
games/mangband: Added (graphical dungeon adventure game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mangband/doinst.sh')
-rw-r--r--games/mangband/doinst.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/mangband/doinst.sh b/games/mangband/doinst.sh
new file mode 100644
index 0000000000..72f1167f20
--- /dev/null
+++ b/games/mangband/doinst.sh
@@ -0,0 +1,26 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config /usr/share/games/mangband/lib/data/scores.raw.new
+config /usr/share/games/mangband/lib/edit/artifact.txt.new
+config /usr/share/games/mangband/lib/edit/ego_item.txt.new
+config /usr/share/games/mangband/lib/edit/flavor.txt.new
+config /usr/share/games/mangband/lib/edit/limits.txt.new
+config /usr/share/games/mangband/lib/edit/monster.txt.new
+config /usr/share/games/mangband/lib/edit/object.txt.new
+config /usr/share/games/mangband/lib/edit/p_class.txt.new
+config /usr/share/games/mangband/lib/edit/p_hist.txt.new
+config /usr/share/games/mangband/lib/edit/p_race.txt.new
+config /usr/share/games/mangband/lib/edit/terrain.txt.new
+config /usr/share/games/mangband/lib/edit/vault.txt.new