summaryrefslogtreecommitdiffstats
path: root/network/neomutt/doinst.sh
diff options
context:
space:
mode:
author Corrado Franco2018-12-24 23:27:40 +0100
committer Willy Sudiarto Raharjo2018-12-24 23:27:40 +0100
commit4002feeb7996e619913dc7e51568e51d20539d15 (patch)
tree99783316c6bc9e2b56b8202545a2b81c895276b8 /network/neomutt/doinst.sh
parent740b268df9ffb57d7365188015a703182d4796f0 (diff)
downloadslackbuilds-4002feeb7996e619913dc7e51568e51d20539d15.tar.gz
network/neomutt: Added (Text-based Mail Client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/neomutt/doinst.sh')
-rw-r--r--network/neomutt/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/neomutt/doinst.sh b/network/neomutt/doinst.sh
new file mode 100644
index 0000000000..32e580cced
--- /dev/null
+++ b/network/neomutt/doinst.sh
@@ -0,0 +1,16 @@
+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 etc/neomutt/neomuttrc.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications > /dev/null 2>&1
+fi
+