summaryrefslogtreecommitdiffstats
path: root/abs/extra/google-chrome/google-chrome.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-08-26 18:31:41 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-08-26 18:31:41 (GMT)
commit8d0fbda7bb1967b70924a30fce8bdc724638cb88 (patch)
treec84eb12c25ec53cb6c657e8f2c1c7bebd1b2a8f6 /abs/extra/google-chrome/google-chrome.install
parent6d6ee1d71db0b51eaceeb0c62f4bc13cc671ee95 (diff)
downloadlinhes_pkgbuild-8d0fbda7bb1967b70924a30fce8bdc724638cb88.zip
linhes_pkgbuild-8d0fbda7bb1967b70924a30fce8bdc724638cb88.tar.gz
linhes_pkgbuild-8d0fbda7bb1967b70924a30fce8bdc724638cb88.tar.bz2
google-chrome: Initial Inclusion. Replace chromium. refs# 923.
Diffstat (limited to 'abs/extra/google-chrome/google-chrome.install')
-rw-r--r--abs/extra/google-chrome/google-chrome.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/extra/google-chrome/google-chrome.install b/abs/extra/google-chrome/google-chrome.install
new file mode 100644
index 0000000..c5c7d50
--- /dev/null
+++ b/abs/extra/google-chrome/google-chrome.install
@@ -0,0 +1,17 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ if [ ! -a /usr/bin/chromium ]; then
+ ln -s /usr/bin/google-chrome /usr/bin/chromium
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ if [ -h /usr/bin/chromium ]; then
+ rm /usr/bin/chromium
+ fi
+}