aboutsummaryrefslogtreecommitdiff
path: root/games/ultimatestunts/doinst.sh
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds[at]schoepfer[dot]info>2018-07-18 23:40:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-21 06:53:31 +0700
commit46b63f844774a043f6a4a1a5b699ae9fb6df3e51 (patch)
treee8d32b3b8c130f3979e5bda163a4ca75a1370211 /games/ultimatestunts/doinst.sh
parenta6b4e947bc457cd62ded27487fb75d35ea79ebd7 (diff)
downloadslackbuilds-46b63f844774a043f6a4a1a5b699ae9fb6df3e51.tar.xz
games/ultimatestunts: Added (remake of DOS racing game 'Stunts').
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/ultimatestunts/doinst.sh')
-rw-r--r--games/ultimatestunts/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/ultimatestunts/doinst.sh b/games/ultimatestunts/doinst.sh
new file mode 100644
index 000000000000..12adae7cb258
--- /dev/null
+++ b/games/ultimatestunts/doinst.sh
@@ -0,0 +1,18 @@
+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 etc/ultimatestunts.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi