summarylogtreecommitdiffstats
path: root/thunderbird-beta.install
diff options
context:
space:
mode:
authorDet2015-06-14 04:13:28 +0300
committerDet2015-06-14 04:14:16 +0300
commite5b209c1a8a49b10281b39e6fc44e2276294d32c (patch)
treefa04e9964e95c99e28e0d1c7e5774b53a0532f2b /thunderbird-beta.install
downloadaur-e5b209c1a8a49b10281b39e6fc44e2276294d32c.tar.gz
Initial import: 38.0.1-1
Diffstat (limited to 'thunderbird-beta.install')
-rw-r--r--thunderbird-beta.install34
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
+}