[tracker] thunderbird: Do not call update-desktop-database when building packages
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] thunderbird: Do not call update-desktop-database when building packages
- Date: Mon, 5 Sep 2011 09:30:46 +0000 (UTC)
commit 7b0b33b8eeebe81745958cda1a46aa3261dc4c08
Author: Vincent Untz <vuntz gnome org>
Date: Mon Sep 5 11:07:25 2011 +0200
thunderbird: Do not call update-desktop-database when building packages
Fixes GB#658232
src/plugins/thunderbird/Makefile.am | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/thunderbird/Makefile.am b/src/plugins/thunderbird/Makefile.am
index 38d0af7..e5e5e01 100644
--- a/src/plugins/thunderbird/Makefile.am
+++ b/src/plugins/thunderbird/Makefile.am
@@ -13,10 +13,18 @@ mimefix_DATA = trackerbird-launcher.desktop
EXTRA_DIST = $(extension_DATA) $(mimefix_DATA)
-install-data-hook:
+update-desktop-database:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating .desktop database."; \
+ update-desktop-database; \
+ else \
+ echo "*** .desktop database not updated. After (un)install, run this:"; \
+ echo "*** update-desktop-database"; \
+ fi
+
+install-data-hook: update-desktop-database
$(MKDIR_P) "$(DESTDIR)$(TRACKER_MINER_THUNDERBIRD_INSTALL_DIR)"
$(LN_S) -f "$(extensiondir)" "$(DESTDIR)$(TRACKER_MINER_THUNDERBIRD_INSTALL_DIR)/trackerbird bustany org"
- update-desktop-database
-uninstall-hook:
+uninstall-hook: update-desktop-database
$(RM) "$(DESTDIR)$(TRACKER_MINER_THUNDERBIRD_INSTALL_DIR)/trackerbird bustany org"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]