post_install() {
   xdg-icon-resource forceupdate --theme hicolor &> /dev/null
   if [ -f usr/bin/update-mime-database ]; then
      update-mime-database usr/share/mime &> /dev/null
   fi
}

post_upgrade() {
   post_install
}

pre_remove() {
   post_install
}