blob: 7a598ff8f1ef3a5e1780b9835399d640be75d9b2 (
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
|
# Colored makepkg-like functions
msg_green() {
printf "${green}==>${bold} $1${all_off}\n"
}
note() {
printf "${blue} ->${bold} $1${all_off}\n"
}
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
green="${bold}$(tput setaf 2)"
yellow="${bold}$(tput setaf 3)"
post_install() {
msg_green "Running Post Install Tasks..."
note "Creating Symlinks in /usr/bin"
ln -sf /opt/peazip/peazip /usr/bin/peazip
ln -sf /opt/peazip/res/pea /usr/bin/pea
ln -sf /opt/peazip/res/pealauncher /usr/bin/pealauncher
note "Updating desktop MIME database"
update-desktop-database -q
}
post_upgrade() {
msg_green "Running Post Upgrade Tasks..."
note "Updating desktop MIME database"
update-desktop-database -q
}
post_remove() {
msg_green "Running Post Upgrade Tasks..."
note "Removing old links and folders"
rm -f /usr/bin/peazip
rm -f /usr/bin/pea
rm -f /usr/bin/pealauncher
rm -rdf /opt/peazip
note "Updating desktop MIME database"
update-desktop-database -q
}
|