diff options
author | Allen Zhong | 2017-08-30 17:22:07 +0800 |
---|---|---|
committer | Allen Zhong | 2017-08-30 17:22:07 +0800 |
commit | bb9b989dfc985c99205592921211b9d37f2f9dcc (patch) | |
tree | 66d9815b9eb2c886c727b695785826c17fdc0c07 /firefox-esr.install | |
parent | 0f19209bfcb9b32bf1ad104f1d6d244915081a71 (diff) | |
download | aur-bb9b989dfc985c99205592921211b9d37f2f9dcc.tar.gz |
try to sync from firefox-esr-bin
Diffstat (limited to 'firefox-esr.install')
-rw-r--r-- | firefox-esr.install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/firefox-esr.install b/firefox-esr.install new file mode 100644 index 000000000000..02961053554f --- /dev/null +++ b/firefox-esr.install @@ -0,0 +1,34 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE$1:${bold} $2${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +_update() { + msg_blue "Updating desktop database..." + update-desktop-database -q + msg_blue "Updating icon cache.." + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} + +post_install() { + _update + note 1 "This package installs side-by-side with [extra]'s firefox." + note 2 "The binary is called 'firefox-esr'." +} + +post_upgrade() { + post_install +} + +post_remove() { + post_upgrade +} |