summaryrefslogtreecommitdiff
path: root/community/root/root.install
blob: afabb7aea55d46a173af95fd50d9e4c1e2f26eca (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
post_install() {
  update-desktop-database >/dev/null

  update-mime-database /usr/share/mime >/dev/null

  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_upgrade() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

pre_remove() {
  # leave for pre 5.30.03-3
  if [[ $(vercmp $1 5.30.03-3) == -1 ]]; then
    cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot
    mv /tmp/.pacroot etc/ld.so.conf
    chmod 644 etc/ld.so.conf
    sbin/ldconfig -r .
  fi
}

post_remove() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}