summarylogtreecommitdiffstats
path: root/thunderbird-beta-bin.install
diff options
context:
space:
mode:
authorDet2015-06-14 04:13:28 +0300
committerDet2015-06-14 04:14:16 +0300
commit6cbaa139e3ca354a0b2c012e16ce02f95a5c47fa (patch)
tree2cd5074a0fe4a15945f277815233c435e9fa86e3 /thunderbird-beta-bin.install
downloadaur-6cbaa139e3ca354a0b2c012e16ce02f95a5c47fa.tar.gz
Initial import: 38.0.1-1
Diffstat (limited to 'thunderbird-beta-bin.install')
-rw-r--r--thunderbird-beta-bin.install34
1 files changed, 34 insertions, 0 deletions
diff --git a/thunderbird-beta-bin.install b/thunderbird-beta-bin.install
new file mode 100644
index 000000000000..0b60d9ff8a83
--- /dev/null
+++ b/thunderbird-beta-bin.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
+}