diff options
author | Manuel Hüsers | 2015-08-10 16:15:39 +0200 |
---|---|---|
committer | Manuel Hüsers | 2015-08-10 16:15:39 +0200 |
commit | 3aa4db8f24ac6c38c17080b3837f144bcb20923d (patch) | |
tree | 79f77ab881488767686132d73382401829b63ea5 /drawpile.install | |
parent | b602e01dfadffb3e7f5889911bee6f5d61007045 (diff) | |
download | aur-3aa4db8f24ac6c38c17080b3837f144bcb20923d.tar.gz |
New release
Moved some dependencies to optional again
Added support for only building client or server version fo this package (May be split in future)
Added notifications that package may have to be recompiled after installing optional packages
Diffstat (limited to 'drawpile.install')
-rw-r--r-- | drawpile.install | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/drawpile.install b/drawpile.install index b8c7ebf27b7e..ace6a9c3f0df 100644 --- a/drawpile.install +++ b/drawpile.install @@ -1,11 +1,32 @@ -post_install() { +# 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)" +yellow="${bold}$(tput setaf 3)" +blue="${bold}$(tput setaf 4)" + +_update() { + msg_blue 'Updating desktop MIME database...' update-desktop-database -q } +post_install() { + _update + note "If installing optional dependencies afterwards you may have to recompile this package." + #note "If you wish to only install the server or client set 'BUILD' to 'SERVER' or 'CLIENT' in the PKGBUILD file and recompile this package." +} + post_upgrade() { - post_install + _update } post_remove() { - post_install -} + _update +}
\ No newline at end of file |