diff options
author | Clastres Térence | 2018-01-01 17:00:51 +0100 |
---|---|---|
committer | Clastres Térence | 2018-01-01 17:00:51 +0100 |
commit | f2d9d2b4a975f93574b7e71cdc18834f30ddec77 (patch) | |
tree | 9747025be1432f26fee8146405a8d92f6c3ee207 /.INSTALL | |
download | aur-f2d9d2b4a975f93574b7e71cdc18834f30ddec77.tar.gz |
Initial commit
Diffstat (limited to '.INSTALL')
-rw-r--r-- | .INSTALL | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.INSTALL b/.INSTALL new file mode 100644 index 000000000000..f60628dabc75 --- /dev/null +++ b/.INSTALL @@ -0,0 +1,39 @@ +available() +{ + command -v $1 >/dev/null 2>&1 +} + +integration() { + + # Setup Menus + if available update-desktop-database + then + update-desktop-database -q /usr/share/applications + fi + + # Setup MIME types + if available update-mime-database + then + update-mime-database /usr/share/mime >/dev/null + fi + + # Setup Icons + touch -c /usr/share/icons/hicolor + if available gtk-update-icon-cache + then + gtk-update-icon-cache -tq /usr/share/icons/hicolor + fi + +} + +post_install() { + integration +} + +post_upgrade() { + integration +} + +post_remove() { + integration +} |