blob: 5f439669f5d48cab4426d470e5a52151abc685ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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() {
[ -f /etc/pacman.d/hooks/pacnew-chaser.hook ] && rm /etc/pacman.d/hooks/pacnew-chaser.hook
# rm -rf $HOME/.local/share/pacnew-chaser
echo "For a clean home, you can"
echo "remove $HOME/.local/share/pacnew-chaser/"
echo "remove $HOME/.config/pacnew-chaser.ini"
}
|