diff options
Diffstat (limited to 'community/opera/opera.install')
-rw-r--r-- | community/opera/opera.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/opera/opera.install b/community/opera/opera.install new file mode 100644 index 000000000..1190e6fd6 --- /dev/null +++ b/community/opera/opera.install @@ -0,0 +1,20 @@ +available() { + which "$1" >/dev/null 2>&1 +} + +post_install() { + update-mime-database /usr/share/mime >/dev/null + update-desktop-database -q /usr/share/applications + + if available gtk-update-icon-cache; then + gtk-update-icon-cache -q /usr/share/icons/hicolor + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |