update_cache() {
  if [ -x usr/bin/xdg-icon-resource ]; then
    xdg-icon-resource forceupdate --theme hicolor > /dev/null 2>&1
  fi

  if [ -x usr/bin/update-desktop-database ]; then
    usr/bin/update-desktop-database -q
  fi
}

post_install() {
  update_cache
}

post_upgrade() {
  update_cache
}

post_remove() {
  update_cache
}

# vim: ts=2 sw=2 et:
