Commits

stretchedthin committed d14c32d

gnugo

  • Participants
  • Parent commits c5cec63
  • Branches veclinux-7.0

Comments (0)

Files changed (1)

File var/vabs/gnugo/src/gnugo.SlackBuild

 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"1"}
+BUILDNUM=${BUILDNUM:-"2"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 #######################################################################
 
 
+# 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=$NAME
+GenericName=
+Comment=
+Exec=$NAME
+Icon=$NAME.png
+
+# AudioVideo, Development, Education, Game, Graphics, Network
+# Office, Settings, System, Utility
+Categories=Game;
+		
+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 AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO WINDOWS \
 $PKG/usr/doc/$NAME-$VERSION