diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2016-08-02 23:53:16 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-08-05 18:10:41 +0100 |
commit | c30295a9fc9ababce635e8272c0b7ba90ca708a0 (patch) | |
tree | 4017de7c3cdcf250ff78b98dda9fa615fe4b9ca9 /multimedia/lightspark/doinst.sh | |
parent | f4020cea36fdccdb57e02a64145aff9512d98d84 (diff) | |
download | slackbuilds-c30295a9fc9ababce635e8272c0b7ba90ca708a0.tar.gz |
multimedia/lightspark: Added (Open source flash player).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/lightspark/doinst.sh')
-rw-r--r-- | multimedia/lightspark/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/multimedia/lightspark/doinst.sh b/multimedia/lightspark/doinst.sh new file mode 100644 index 0000000000..15b29de4d2 --- /dev/null +++ b/multimedia/lightspark/doinst.sh @@ -0,0 +1,24 @@ +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/xdg/lightspark.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |