diff options
Diffstat (limited to 'google-earth6.install')
-rw-r--r-- | google-earth6.install | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/google-earth6.install b/google-earth6.install new file mode 100644 index 000000000000..0755338df5dd --- /dev/null +++ b/google-earth6.install @@ -0,0 +1,37 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:$1${bold} $2${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +_update() { + msg_blue "Updating desktop MIME database..." + update-desktop-database -q + msg_blue "Updating MIME database..." + update-mime-database usr/share/mime >/dev/null + msg_blue "Updating icon cache..." + xdg-icon-resource forceupdate &>/dev/null +} + +post_install() { + _update + note 1 "The launcher is called 'google-earth6'." + note 2 "This package installs side-by-side with 'google-earth' (v7)." + note 3 "Keep in mind both versions sharing ~/.googleearth/ might not work as inteded." +} + +post_upgrade() { + _update +} + +post_remove() { + _update +}
\ No newline at end of file |