diff options
author | Det | 2015-06-14 04:13:27 +0300 |
---|---|---|
committer | Det | 2015-06-14 04:14:15 +0300 |
commit | 4f05b83ba39005277501d2db192522e6582b0bda (patch) | |
tree | 77c9475b7d2ab4fe0c813a78698ac88df36d0c07 /google-earth.install | |
download | aur-4f05b83ba39005277501d2db192522e6582b0bda.tar.gz |
Initial import: 7.1.4.1529-1
Diffstat (limited to 'google-earth.install')
-rw-r--r-- | google-earth.install | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/google-earth.install b/google-earth.install new file mode 100644 index 000000000000..58a172690470 --- /dev/null +++ b/google-earth.install @@ -0,0 +1,50 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:$2${bold} $1${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +# 64-bit? +if [[ $(uname -m) = x86_64 ]]; then + _64=true +fi + +_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 + if [[ $_64 ]]; then + note "The binary is called 'google-earth'." "1" + note "If experiencing graphical corruption: + $ rm -r ~/.googleearth/Cache/" "2" + else + note "The launcher is called 'google-earth'." + fi +} + +post_upgrade() { + _update + if [[ $_64 ]]; then + note "If experiencing graphical corruption: + $ rm -r ~/.googleearth/Cache/" + fi +} + +post_remove() { + _update +} |