Commits

Anonymous committed caf1a44

fixed desktop file and some other tweaks
Signed-off-by: vector <veclinux@mail.com>

  • Participants
  • Parent commits 49f70d4

Comments (0)

Files changed (1)

var/vabs/cups/src/cups.SlackBuild

 # CUPS build script by volkerdi@slackware.com.
 NAME="cups"
 VERSION=${VERSION:-"1.5.3"}
-BUILD=${BUILD:-"1vl70"}
+BUILDNUM=${BUILDNUM:-"1"}
+VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
+BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 LINK=${LINK:-"http://ftp.easysw.com/pub/$NAME/$VERSION/$NAME-${VERSION}-source.tar.bz2"}
 
 MAKEDEPENDS=${MAKEDEPENDS:-"openldap"} #Add deps needed TO BUILD this package here.
 mv $PKG/etc/init.d/cups $PKG/etc/rc.d/rc.cups.new
 chmod 644 $PKG/etc/rc.d/rc.cups.new
 # Clear out the additions:
-rm -rf $PKG/etc/init.d $PKG/etc/rc{0,2,3,5}.d
-
+# rm -rf $PKG/etc/init.d $PKG/etc/rc{0,2,3,5}.d
+# fix .desktop file
+  sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' ${PKG}/usr/share/applications/cups.desktop
 ### OBSOLETE.  The USB backend is patched to support usblp again. ###
 ## From 1.4.x, CUPS no longer uses usblp, and having the module loaded
 ## will interfere with USB printers.  So, we will add a blacklist rule