summaryrefslogtreecommitdiffstats
path: root/abs/extra/opera/opera.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-09 22:24:58 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-09 22:24:58 (GMT)
commit6ff88e610f6c6e25c02ec901ffaa6132161fd2a2 (patch)
tree376a2d8e6b9555eaf8e502f4843569b10b2c104e /abs/extra/opera/opera.install
parentcffec9e13095fa6f4eaca2bfbbe7bb4df73db5f3 (diff)
downloadlinhes_pkgbuild-6ff88e610f6c6e25c02ec901ffaa6132161fd2a2.zip
linhes_pkgbuild-6ff88e610f6c6e25c02ec901ffaa6132161fd2a2.tar.gz
linhes_pkgbuild-6ff88e610f6c6e25c02ec901ffaa6132161fd2a2.tar.bz2
opera: Update to 11.50
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
+}