summarylogtreecommitdiffstats
path: root/airvpn.install
diff options
context:
space:
mode:
authorUncle Hunto2015-08-12 19:17:24 -0700
committerUncle Hunto2015-08-12 19:17:24 -0700
commitc72e4befbcab92835367e5707011ef4c8c0047fe (patch)
tree33a1b1911939d857b97069881f187566df89ffd2 /airvpn.install
downloadaur-c72e4befbcab92835367e5707011ef4c8c0047fe.tar.gz
Initial import
Diffstat (limited to 'airvpn.install')
-rw-r--r--airvpn.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/airvpn.install b/airvpn.install
new file mode 100644
index 000000000000..2a4b46bb2950
--- /dev/null
+++ b/airvpn.install
@@ -0,0 +1,30 @@
+# Colored makepkg-like functions
+msg_blue() {
+ printf "${blue}==>${bold} $1${all_off}\n"
+}
+
+note() {
+ printf "${blue}==>${yellow} NOTE:${bold} $1${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 MIME database..."
+ update-desktop-database -q
+}
+
+post_install() {
+ _update
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ _update
+}