Commits

Anonymous committed e32ec89

Rebuild etm_qt with a desktop and icon files

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

Comments (0)

Files changed (1)

var/vabs/etm_qt/src/etm_qt.SlackBuild

 #Miscellenious tweaks and things outside a normal ./configure go here #
 #######################################################################
 
+# Menu entry - http://standards.freedesktop.org/desktop-entry-spec/latest/
 
+if test -f $CWD/$NAME.png; then
+  mkdir -p $PKG/usr/share/pixmaps
+  cp $CWD/$NAME.png $PKG/usr/share/pixmaps/$NAME.png
+fi
+
+mkdir -p $PKG/usr/share/applications
+if test -f $CWD/${NAME}.desktop; then
+  cp $CWD/$NAME.desktop $PKG/usr/share/applications/$NAME.desktop
+else
+cat > $PKG/usr/share/applications/$NAME.desktop << EOF
+[Desktop Entry]
+# Please edit as needed
+Name=ETM v2
+GenericName=Events and Tasks Manager v2
+Comment=Events and Tasks Manager v2
+Exec=etm_qt.py
+Icon=$NAME.png
+
+# AudioVideo, Development, Education, Game, Graphics, Network
+# Office, Settings, System, Utility
+Categories=Utility;
+		
+Type=Application
+Terminal=false
+Encoding=UTF-8
+
+#TryExec=
+#Path=
+#StartupWMClass=
+#NoDisplay=
+#StartupNotify=
+#MimeType=
+#OnlyShowIn=
+#NotShowIn=
+
+#Localization example
+#Name[es]=
+#Comment[es]=
+EOF
+fi
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
 cp -a PKG-INFO README* $PKG/usr/doc/$NAME-$VERSION