summaryrefslogtreecommitdiffstats
path: root/abs/extra/opera/opera.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/opera/opera.install')
-rw-r--r--abs/extra/opera/opera.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/extra/opera/opera.install b/abs/extra/opera/opera.install
new file mode 100644
index 0000000..385bcb4
--- /dev/null
+++ b/abs/extra/opera/opera.install
@@ -0,0 +1,29 @@
+available()
+{
+ which "$1" >/dev/null 2>&1
+}
+
+post_install() {
+if available update-mime-database
+then
+ update-mime-database /usr/share/mime >/dev/null
+fi
+
+if available update-desktop-database
+then
+ update-desktop-database -q /usr/share/applications
+fi
+
+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
+}