diff options
author | Uncle Hunto | 2016-06-23 14:58:27 -0700 |
---|---|---|
committer | Uncle Hunto | 2016-06-23 14:58:27 -0700 |
commit | b1045a53e55553ebb3929ae86913e39ce8ffbb5b (patch) | |
tree | 79a74b0381328fcef9a7721185d9bf619661015a | |
parent | eff1ba187c09034fff2c702552b10d3425530d47 (diff) | |
download | aur-b1045a53e55553ebb3929ae86913e39ce8ffbb5b.tar.gz |
Beautify Install File
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | peazip.install | 40 |
2 files changed, 32 insertions, 10 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Jun 23 05:55:58 UTC 2016 +# Thu Jun 23 21:58:00 UTC 2016 pkgbase = peazip-gtk2-build pkgdesc = Free GTK2 cross-platform file archiver (compiles from source) pkgver = 6.0.3 diff --git a/peazip.install b/peazip.install index 5576d72ee485..fa6a730f73de 100644 --- a/peazip.install +++ b/peazip.install @@ -1,21 +1,43 @@ -post_install() { - ln -sf "/opt/peazip/peazip" "/usr/bin/peazip" - update-desktop-database -q +# Colored makepkg-like functions +msg_green() { + printf "${green}==>${bold} $1${all_off}\n" } -post_package() { - post_install +note() { + printf "${blue} ->${bold} $1${all_off}\n" } -post_upgrade() { - post_install +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +green="${bold}$(tput setaf 2)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + msg_green "Running Post Install Tasks..." + note "Creating Symlinks in /usr/bin" + ln -sf /opt/peazip/peazip /usr/bin/peazip + ln -sf /opt/peazip/peazip /usr/bin/pea + ln -sf /opt/peazip/peazip /usr/bin/pealauncher + note "Updating desktop MIME database" + update-desktop-database -q } -postmove() { - post_install +post_upgrade() { + msg_green "Running Post Upgrade Tasks..." + note "Updating desktop MIME database" + update-desktop-database -q } post_remove() { + update-desktop-database -q + msg_green "Running Post Upgrade Tasks..." + note "Removing old links and folders" rm -f /usr/bin/peazip + rm -f /usr/bin/pea + rm -f /usr/bin/pealauncher + rm -rdf /opt/peazip + note "Updating desktop MIME database" update-desktop-database -q + } |