blob: d11379add4511eb27308f7810ece7a1f70c406a7 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# 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 icon cache..."
xdg-icon-resource forceupdate &>/dev/null
}
post_install() {
_update
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() {
_update
if [[ $_64 ]]; then
note "If experiencing graphical corruption:
$ rm -r ~/.googleearth/Cache/"
fi
}
post_remove() {
_update
}
|