summarylogtreecommitdiffstats
path: root/google-earth.install
blob: 1d57073339567e80253c67053b035f2bc85a1eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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

post_install() {    
    if [[ $_64 ]]; then
        note "The launcher 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() {    
    if [[ $_64 ]]; then
        note "If experiencing graphical corruption:
          $ rm -r ~/.googleearth/Cache/"
    fi
}