[Lunar-commits] <moonbase> qgit4: Adding a desktop entry.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Fri Nov 20 16:43:28 CET 2009


commit 73fcaf1c974955f004211eb5148e5a3283164de3
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Fri Nov 20 10:43:28 2009 -0500

    qgit4: Adding a desktop entry.
---
 qt4-apps/qgit4/BUILD |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/qt4-apps/qgit4/BUILD b/qt4-apps/qgit4/BUILD
index e3d2fc6..861605c 100644
--- a/qt4-apps/qgit4/BUILD
+++ b/qt4-apps/qgit4/BUILD
@@ -1,10 +1,25 @@
 (
 
-  . /etc/profile.d/qt4.rc
+  . /etc/profile.d/qt4.rc &&
 
   $QTDIR/bin/qmake qgit.pro &&
+
   make  &&
   prepare_install  &&
-  install -m 755 -s bin/qgit ${MODULE_PREFIX}/bin
- 
+  install -m 755 -s bin/qgit ${MODULE_PREFIX}/bin  &&
+  install -m 644 src/resources/qgit.ico ${MODULE_PREFIX}/share/icons/ &&
+
+    # Desktop menu entry
+  cat > ${MODULE}.desktop << EOF  &&
+[Desktop Entry]
+Type=Application
+Name=qgit
+Comment=Qt interface for git
+Exec=$QTDIR/bin/qgit
+Icon=$QTDIR/share/icons/qgit.ico
+Categories=Qt;KDE;Development;
+EOF
+
+  install -D -m644 ${MODULE}.desktop $QTDIR/share/applications/${MODULE}.desktop
+
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list