summaryrefslogtreecommitdiff
path: root/academic/arka/doinst.sh
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-09-03 09:17:14 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-03 09:17:14 -0300
commitd4353e6dec3841394462e0c35de336b52e63d3b5 (patch)
tree447bde63333a84e0feb38f9d466c49b37da3c02c /academic/arka/doinst.sh
parent5d75fedb2ed7fa7929c48505779832561ab915fc (diff)
downloadslackbuilds-d4353e6dec3841394462e0c35de336b52e63d3b5.tar.gz
academic/arka: Added (A GUI for genpak)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/arka/doinst.sh')
-rw-r--r--academic/arka/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/academic/arka/doinst.sh b/academic/arka/doinst.sh
new file mode 100644
index 0000000000..72fe083ba0
--- /dev/null
+++ b/academic/arka/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/arkarc.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi