Commits

Anonymous committed 6b5a722

Rebuild etm with a desktop files and distribute or setuptools as dep

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

  • Participants
  • Parent commits a18a83b
  • Branches veclinux-7.0

Comments (0)

Files changed (2)

File var/vabs/etm/src/etm.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)"}
 CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
-ADDRB=${ADDRB:-"wxPython >= 2.8.12.0, six >= 1.3.0, python2-dateutil >= 2.1"} #Add deps that need to be added to the slack-required file here
+ADDRB=${ADDRB:-"wxPython >= 2.8.12.0, six >= 1.3.0, python2-dateutil >= 2.1, \
+distribute >= 0.6.46 | setuptools >= 0.6c11"} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
 MAKEDEPENDS=${MAKEDEPENDS:-"distribute"} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 #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
+GenericName=Events and Tasks Manager
+Comment=Events and Tasks Manager
+Exec=python e.pyw
+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

File var/vabs/etm/src/etm.png

Added
New image