diff options
author | Det | 2015-06-14 04:13:28 +0300 |
---|---|---|
committer | Det | 2015-06-14 04:14:16 +0300 |
commit | e5b209c1a8a49b10281b39e6fc44e2276294d32c (patch) | |
tree | fa04e9964e95c99e28e0d1c7e5774b53a0532f2b /thunderbird-beta.install | |
download | aur-e5b209c1a8a49b10281b39e6fc44e2276294d32c.tar.gz |
Initial import: 38.0.1-1
Diffstat (limited to 'thunderbird-beta.install')
-rw-r--r-- | thunderbird-beta.install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/thunderbird-beta.install b/thunderbird-beta.install new file mode 100644 index 000000000000..0b60d9ff8a83 --- /dev/null +++ b/thunderbird-beta.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 thunderbird." + note 2 "The binary is called 'thunderbird-beta'." +} + +post_upgrade() { + _update +} + +post_remove() { + post_upgrade +} |