summarylogtreecommitdiffstats
path: root/opera.install
diff options
context:
space:
mode:
Diffstat (limited to 'opera.install')
-rw-r--r--opera.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/opera.install b/opera.install
new file mode 100644
index 000000000000..1190e6fd6261
--- /dev/null
+++ b/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
+}