summarylogtreecommitdiffstats
path: root/mkmm.install
blob: e65a15ad409f7e69f6598833ed9a58906ab2f62c (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
# Colored makepkg-like functions
# from google-chrome.install
msg_blue() {
    printf "${blue}==>${bold} $1${all_off}\n"
}

note() {
    printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}

all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"

post_install() {
  note "Link your preferred pre- and post- hooks to /etc/pacman.d/hooks, see alpm-hooks(5)"
  note "Readme: pacman -Qql mkmm | grep -i readme"
}

post_remove() {
  note "Remove the hooks from /etc/pacman.d/hooks, and disable the mkmm-bleach service"
}

post_upgrade() {
  case "$2" in
    0.1.*|0.2.*) note "The restore hooks have changed, they are now numbered 65-*" ;;
  esac
}