summaryrefslogtreecommitdiff
path: root/games/bastet/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-08-26 08:09:23 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-30 14:22:21 +0700
commitb7d983c6517b38e407003ddfd50c39f79177c8b3 (patch)
tree2e05c421984240fb79112cd54622b8f6608daa80 /games/bastet/doinst.sh
parentcc75e08213f820a11e40a696a48c9ab2877f4741 (diff)
downloadslackbuilds-b7d983c6517b38e407003ddfd50c39f79177c8b3.tar.gz
games/bastet: Updated for version 0.43.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/bastet/doinst.sh')
-rw-r--r--games/bastet/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/bastet/doinst.sh b/games/bastet/doinst.sh
new file mode 100644
index 0000000000..2e4f15942f
--- /dev/null
+++ b/games/bastet/doinst.sh
@@ -0,0 +1,19 @@
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config var/games/bastet/bastet.scores2.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi