pkgname=screem post_install() { gconfpkg --install ${pkgname} update-desktop-database -q update-mime-database usr/share/mime > /dev/null } pre_upgrade() { pre_remove $1 } post_upgrade() { post_install $1 } pre_remove() { gconfpkg --uninstall ${pkgname} } post_remove() { update-desktop-database -q update-mime-database usr/share/mime > /dev/null }