summarylogtreecommitdiffstats
path: root/.install
blob: d16d3b00e49669454aabcd510a045d132a015ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  mkdir -p  /etc/pacman.d/hooks
  sudo ln -s /usr/lib/pacnew-chaser/pacnew-chaser.hook /etc/pacman.d/hooks/pacnew-chaser.hook
}
post_upgrade() {
  mkdir -p  /etc/pacman.d/hooks
  [ -f /etc/pacman.d/hooks/pacnew-chaser.hook ]  || sudo ln -s /usr/lib/pacnew-chaser/pacnew-chaser.hook /etc/pacman.d/hooks/pacnew-chaser.hook
}

post_remove() {
  [ -h /etc/pacman.d/hooks/pacnew-chaser.hook ] && unlink /etc/pacman.d/hooks/pacnew-chaser.hook
  echo "For a clean home, you can"
  echo 'remove $HOME/.local/share/pacnew-chaser/'
  echo 'remove $HOME/.config/pacnew-chaser.ini'
}