# HG changeset patch # User Rohit Joshi # Date 1240761880 0 # Node ID b1c8a17cf2ac688649cf494016810d72fed047c2 # Parent 2fcd109566e73ed7a0981fa5176cd3216b963284 Add printer drivers: hplip, gutneprint, foomatic, pnm2ppa diff -r 2fcd109566e7 -r b1c8a17cf2ac foomatic-filters/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foomatic-filters/receipt Sun Apr 26 16:04:40 2009 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="foomatic-filters" +VERSION="4.0.0" +CATEGORY="system-tools" +SHORT_DESC="Top quality printer drivers for Canon, Epson" +MAINTAINER="jozee@slitaz.org" +DEPENDS="ghostscript" +BUILD_DEPENDS="ghostscript-dev cups-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.linuxprinting.org/foomatic.html" +WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc $fs/usr/lib + + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib/cups $fs/usr/lib + cp -a $_pkg/etc $fs + +} + diff -r 2fcd109566e7 -r b1c8a17cf2ac ghostscript/receipt --- a/ghostscript/receipt Sun Apr 26 16:00:45 2009 +0000 +++ b/ghostscript/receipt Sun Apr 26 16:04:40 2009 +0000 @@ -9,7 +9,7 @@ DEPENDS="expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \ libiconv libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ xorg-libXdmcp xorg-libXext xorg-libXt" -# build depends are optional ; ghostscripts still build but dose not compile in cups support +# build depends are optional ; ghostscripts still build but does not compile in cups support BUILD_DEPENDS="libiconv cairo-dev gtk+-dev" WEB_SITE="http://pages.cs.wisc.edu/~ghost/" #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL" diff -r 2fcd109566e7 -r b1c8a17cf2ac gutenprint/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gutenprint/receipt Sun Apr 26 16:04:40 2009 +0000 @@ -0,0 +1,52 @@ +# SliTaz package receipt. + +PACKAGE="gutenprint" +VERSION="5.2.3" +CATEGORY="system-tools" +SHORT_DESC="Top quality printer drivers for Canon, Epson" +MAINTAINER="jozee@slitaz.org" +DEPENDS="gnutls readline" +BUILD_DEPENDS="gnutls-dev expat-dev cups-dev libgcrypt-dev zlib-dev" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://gimp-print.sourceforge.net/" +WGET_URL="http://downloads.sourceforge.net/gimp-print/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --disable-samples \ + --with-cups \ + --disable-libgutenprintui \ + --disable-gtktest \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc $fs/usr/lib $fs/usr/share + + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/lib/cups $fs/usr/lib + cp -a $_pkg/usr/lib/gutenprint $fs/usr/lib + cp -a $_pkg/usr/share/cups $fs/usr/share + cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share + cp -a $_pkg/etc $fs + + # Remove docs + rm -rf $fs/usr/share/$PACKAGE/doc + + +} + diff -r 2fcd109566e7 -r b1c8a17cf2ac hplip/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hplip/receipt Sun Apr 26 16:04:40 2009 +0000 @@ -0,0 +1,70 @@ +# SliTaz package receipt. + +PACKAGE="hplip" +VERSION="3.9.2" +CATEGORY="system-tools" +SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet" +MAINTAINER="jozee@slitaz.org" +DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff" +BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://hplipopensource.com" +WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-network-build \ + --disable-doc-build \ + --disable-gui-build \ + --disable-fax-build \ + --disable-qt3 \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc $fs/usr/lib $fs/usr/share + + cp -a $_pkg/etc $fs + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib/cups $fs/usr/lib + cp -a $_pkg/usr/lib/python* $fs/usr/lib + cp -a $_pkg/usr/lib/sane $fs/usr/lib + cp -a $_pkg/usr/lib/*so* $fs/usr/lib + cp -a $_pkg/usr/share/cups \ + $_pkg/usr/share/hal \ + $_pkg/usr/share/hplip \ + $_pkg/usr/share/ppd \ + $fs/usr/share + + + # remove non zipped ppd files + rm -rf $fs/usr/share/ppd/HP/*.ppd + + # remove autostart of hp-daemon + rm -rf $fs/etc/sane.d + # remove xdg + rm -rf $fs/etc/xdg + + # move udev rules to /lib/udev/rules.d + mkdir -p $fs/lib/udev/rules.d + mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/ + rm -rf $fs/etc/udev + # remove lp user, it's not used in slitaz + sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules + +# remove .desktop file as we compiled without pyqt3 support +rm -rf $fs/usr/share/applications/* + + +} + diff -r 2fcd109566e7 -r b1c8a17cf2ac pnm2ppa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pnm2ppa/receipt Sun Apr 26 16:04:40 2009 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="pnm2ppa" +VERSION="1.12" +CATEGORY="system-tools" +SHORT_DESC="Ghostscript print filter and color driver for some HP DeskJet printers" +MAINTAINER="jozee@slitaz.org" +DEPENDS="ghostscript cups foomatic-filters" +BUILD_DEPENDS="ghostscript-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://pnm2ppa.sourceforge.net/" +WGET_URL="http://downloads.sourceforge.net/pnm2ppa/$TARBALL" +#http://downloads.sourceforge.net/pnm2ppa/pnm2ppa-1.12.tar.gz +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make BINDIR="/usr/bin" CONFDIR="/etc" && + make BINDIR=$PWD/_pkg/usr/bin CONFDIR=$PWD/_pkg/etc install + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + + cp -a $_pkg/etc $fs + cp -a $_pkg/usr/bin $fs/usr + + # Still needs ppd file download for the specific printer from + # http://www.linuxprinting.org/show_driver.cgi?driver=pnm2ppa&fromprinter=HP-DeskJet_710C + +} +