summarylogtreecommitdiffstats
path: root/eddie-ui.install
diff options
context:
space:
mode:
authorEddie.website2020-01-29 15:47:53 +0100
committerEddie.website2020-01-29 15:47:53 +0100
commitd579d9099e35c94359726990f67eb1b3c9dacebe (patch)
tree2d7700856a0bab38c2b46247cd4218082ea2ceda /eddie-ui.install
parent88c80b506a50e11e0a6997d4a73714a16cbeb41b (diff)
downloadaur-d579d9099e35c94359726990f67eb1b3c9dacebe.tar.gz
2.18.7
Diffstat (limited to 'eddie-ui.install')
-rw-r--r--eddie-ui.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/eddie-ui.install b/eddie-ui.install
new file mode 100644
index 000000000000..2a4b46bb2950
--- /dev/null
+++ b/eddie-ui.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
+}