[Lunar-commits] <moonbase> qt4: Adjusting the BUILD to add a qt4 designer desktop entry.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Sun Mar 27 13:06:04 CEST 2011


commit b24084599092dea164e0c116052d0f4a092e7631
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Sun Mar 27 07:06:04 2011 -0400

    qt4: Adjusting the BUILD to add a qt4 designer desktop entry.
---
 qt4-apps/qt4/BUILD |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/qt4-apps/qt4/BUILD b/qt4-apps/qt4/BUILD
index 0d93e6f..36036fa 100644
--- a/qt4-apps/qt4/BUILD
+++ b/qt4-apps/qt4/BUILD
@@ -62,6 +62,24 @@
      cd $SOURCE_DIRECTORY
   fi &&
 
+  
+  # Desktop menu entry for Qt Designer
+  if [ "$MAKE_EXAMPLE_DEMOS" == "y" ]; then
+
+  cat > ${MODULE}-designer.desktop << EOF  &&
+[Desktop Entry]
+Type=Application
+Name=Qt4 Designer
+Comment=Qt4 Designer is Qt's tool for designing and building graphical user interfaces
+Exec=/usr/bin/designer
+Icon=/usr/share/doc/qt4/widgets/icons/images/designer.png
+Categories=Application;Qt;KDE;Development;
+EOF
+
+  install -D -m644 ${MODULE}-designer.desktop /usr/share/applications/${MODULE}-designer.desktop 
+  fi &&
+##
+
   echo export QTDIR=\"/usr\" > $SOURCE_DIRECTORY/qt4.rc &&
   echo export PATH=\"'${PATH}':'${QTDIR}'/bin\" >> $SOURCE_DIRECTORY/qt4.rc &&
   echo export XDG_DATA_DIRS=\"'${XDG_DATA_DIRS:-/usr/share}':/usr/share/qt4\" >> $SOURCE_DIRECTORY/qt4.rc &&


More information about the Lunar-commits mailing list