From 4e5bf771780bac1ea5f48cac4a2642dbf0b662b0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 20 Aug 2012 18:22:12 -0300 Subject: doublecmd-gtk2-libre and doublecmd-qt-libre: new packages for [libre] repo --- libre/doublecmd-libre/doublecmd.install | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libre/doublecmd-libre/doublecmd.install (limited to 'libre/doublecmd-libre/doublecmd.install') diff --git a/libre/doublecmd-libre/doublecmd.install b/libre/doublecmd-libre/doublecmd.install new file mode 100644 index 000000000..40d56528f --- /dev/null +++ b/libre/doublecmd-libre/doublecmd.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