Commits

Uelsk8s  committed a73f415

add SDL dep dosbox

  • Participants
  • Parent commits 5fe9ddf

Comments (0)

Files changed (1)

File var/vabs/dosbox/src/dosbox.SlackBuild

 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #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:-""} #Add deps needed TO BUILD this package here.
+MAKEDEPENDS=${MAKEDEPENDS:-"SDL"} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 #Miscellenious tweaks and things outside a normal ./configure go here #
 #######################################################################
 
+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=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 AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
 fi
 #--------------------------------------------------------------
 
-# vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##
+# vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##