From 0a24fb835cac4007388213ad0afb15257b035b14 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 May 2012 00:01:57 +0000 Subject: Fri May 4 00:01:56 UTC 2012 --- community/lazarus/lazarus-ide.install | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 community/lazarus/lazarus-ide.install (limited to 'community/lazarus/lazarus-ide.install') diff --git a/community/lazarus/lazarus-ide.install b/community/lazarus/lazarus-ide.install new file mode 100644 index 000000000..40d56528f --- /dev/null +++ b/community/lazarus/lazarus-ide.install @@ -0,0 +1,34 @@ +update_icons() { + + # Setup Menus + if which update-desktop-database + then + update-desktop-database -q /usr/share/applications + fi + + # Setup MIME types + if which update-mime-database + then + update-mime-database /usr/share/mime >/dev/null + fi + + # Setup Icons + touch -c /usr/share/icons/hicolor + if which gtk-update-icon-cache + then + gtk-update-icon-cache -tq /usr/share/icons/hicolor + fi + +} + +post_install() { + update_icons +} + +post_upgrade() { + update_icons +} + +post_remove() { + update_icons +} -- cgit v1.2.3-54-g00ecf