pkgname=shotwell post_install() { gtk-update-icon-cache -fq -t usr/share/icons/hicolor usr/sbin/gconfpkg --install ${pkgname} update-desktop-database -q } pre_upgrade() { usr/sbin/gconfpkg --uninstall ${pkgname} } post_upgrade() { post_install $1 } pre_remove() { usr/sbin/gconfpkg --uninstall ${pkgname} } post_remove() { update-desktop-database -q gtk-update-icon-cache -fq -t usr/share/icons/hicolor }