wok-stable rev 2765
Add printer drivers: hplip, gutneprint, foomatic, pnm2ppa
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Apr 26 16:04:40 2009 +0000 (2009-04-26) |
parents | 2fcd109566e7 |
children | ed8a1bd29259 |
files | foomatic-filters/receipt ghostscript/receipt gutenprint/receipt hplip/receipt pnm2ppa/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/foomatic-filters/receipt Sun Apr 26 16:04:40 2009 +0000 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="foomatic-filters" 1.7 +VERSION="4.0.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Top quality printer drivers for Canon, Epson" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +DEPENDS="ghostscript" 1.12 +BUILD_DEPENDS="ghostscript-dev cups-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.linuxprinting.org/foomatic.html" 1.15 +WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + ./configure \ 1.22 + --prefix=/usr \ 1.23 + --sysconfdir=/etc \ 1.24 + $CONFIGURE_ARGS && 1.25 + make && 1.26 + make DESTDIR=$PWD/_pkg install 1.27 + 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/etc $fs/usr/lib 1.34 + 1.35 + cp -a $_pkg/usr/bin $fs/usr 1.36 + cp -a $_pkg/usr/lib/cups $fs/usr/lib 1.37 + cp -a $_pkg/etc $fs 1.38 + 1.39 +} 1.40 +
2.1 --- a/ghostscript/receipt Sun Apr 26 16:00:45 2009 +0000 2.2 +++ b/ghostscript/receipt Sun Apr 26 16:04:40 2009 +0000 2.3 @@ -9,7 +9,7 @@ 2.4 DEPENDS="expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \ 2.5 libiconv libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ 2.6 xorg-libXdmcp xorg-libXext xorg-libXt" 2.7 -# build depends are optional ; ghostscripts still build but dose not compile in cups support 2.8 +# build depends are optional ; ghostscripts still build but does not compile in cups support 2.9 BUILD_DEPENDS="libiconv cairo-dev gtk+-dev" 2.10 WEB_SITE="http://pages.cs.wisc.edu/~ghost/" 2.11 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL"
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/gutenprint/receipt Sun Apr 26 16:04:40 2009 +0000 3.3 @@ -0,0 +1,52 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="gutenprint" 3.7 +VERSION="5.2.3" 3.8 +CATEGORY="system-tools" 3.9 +SHORT_DESC="Top quality printer drivers for Canon, Epson" 3.10 +MAINTAINER="jozee@slitaz.org" 3.11 +DEPENDS="gnutls readline" 3.12 +BUILD_DEPENDS="gnutls-dev expat-dev cups-dev libgcrypt-dev zlib-dev" 3.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 3.14 +WEB_SITE="http://gimp-print.sourceforge.net/" 3.15 +WGET_URL="http://downloads.sourceforge.net/gimp-print/$TARBALL" 3.16 + 3.17 +# Rules to configure and make the package. 3.18 +compile_rules() 3.19 +{ 3.20 + cd $src 3.21 + ./configure \ 3.22 + --prefix=/usr \ 3.23 + --sysconfdir=/etc \ 3.24 + --localstatedir=/var \ 3.25 + --mandir=/usr/share/man \ 3.26 + --disable-samples \ 3.27 + --with-cups \ 3.28 + --disable-libgutenprintui \ 3.29 + --disable-gtktest \ 3.30 + $CONFIGURE_ARGS && 3.31 + make && 3.32 + make DESTDIR=$PWD/_pkg install 3.33 + 3.34 +} 3.35 + 3.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.37 +genpkg_rules() 3.38 +{ 3.39 + mkdir -p $fs/etc $fs/usr/lib $fs/usr/share 3.40 + 3.41 + cp -a $_pkg/usr/bin $fs/usr 3.42 + cp -a $_pkg/usr/sbin $fs/usr 3.43 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 3.44 + cp -a $_pkg/usr/lib/cups $fs/usr/lib 3.45 + cp -a $_pkg/usr/lib/gutenprint $fs/usr/lib 3.46 + cp -a $_pkg/usr/share/cups $fs/usr/share 3.47 + cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share 3.48 + cp -a $_pkg/etc $fs 3.49 + 3.50 + # Remove docs 3.51 + rm -rf $fs/usr/share/$PACKAGE/doc 3.52 + 3.53 + 3.54 +} 3.55 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/hplip/receipt Sun Apr 26 16:04:40 2009 +0000 4.3 @@ -0,0 +1,70 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="hplip" 4.7 +VERSION="3.9.2" 4.8 +CATEGORY="system-tools" 4.9 +SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet" 4.10 +MAINTAINER="jozee@slitaz.org" 4.11 +DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff" 4.12 +BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev" 4.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 4.14 +WEB_SITE="http://hplipopensource.com" 4.15 +WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL" 4.16 + 4.17 +# Rules to configure and make the package. 4.18 +compile_rules() 4.19 +{ 4.20 + cd $src 4.21 + ./configure \ 4.22 + --prefix=/usr \ 4.23 + --sysconfdir=/etc \ 4.24 + --disable-network-build \ 4.25 + --disable-doc-build \ 4.26 + --disable-gui-build \ 4.27 + --disable-fax-build \ 4.28 + --disable-qt3 \ 4.29 + $CONFIGURE_ARGS && 4.30 + make && 4.31 + make DESTDIR=$PWD/_pkg install 4.32 + 4.33 +} 4.34 + 4.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.36 +genpkg_rules() 4.37 +{ 4.38 + mkdir -p $fs/etc $fs/usr/lib $fs/usr/share 4.39 + 4.40 + cp -a $_pkg/etc $fs 4.41 + cp -a $_pkg/usr/bin $fs/usr 4.42 + cp -a $_pkg/usr/lib/cups $fs/usr/lib 4.43 + cp -a $_pkg/usr/lib/python* $fs/usr/lib 4.44 + cp -a $_pkg/usr/lib/sane $fs/usr/lib 4.45 + cp -a $_pkg/usr/lib/*so* $fs/usr/lib 4.46 + cp -a $_pkg/usr/share/cups \ 4.47 + $_pkg/usr/share/hal \ 4.48 + $_pkg/usr/share/hplip \ 4.49 + $_pkg/usr/share/ppd \ 4.50 + $fs/usr/share 4.51 + 4.52 + 4.53 + # remove non zipped ppd files 4.54 + rm -rf $fs/usr/share/ppd/HP/*.ppd 4.55 + 4.56 + # remove autostart of hp-daemon 4.57 + rm -rf $fs/etc/sane.d 4.58 + # remove xdg 4.59 + rm -rf $fs/etc/xdg 4.60 + 4.61 + # move udev rules to /lib/udev/rules.d 4.62 + mkdir -p $fs/lib/udev/rules.d 4.63 + mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/ 4.64 + rm -rf $fs/etc/udev 4.65 + # remove lp user, it's not used in slitaz 4.66 + sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules 4.67 + 4.68 +# remove .desktop file as we compiled without pyqt3 support 4.69 +rm -rf $fs/usr/share/applications/* 4.70 + 4.71 + 4.72 +} 4.73 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/pnm2ppa/receipt Sun Apr 26 16:04:40 2009 +0000 5.3 @@ -0,0 +1,35 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="pnm2ppa" 5.7 +VERSION="1.12" 5.8 +CATEGORY="system-tools" 5.9 +SHORT_DESC="Ghostscript print filter and color driver for some HP DeskJet printers" 5.10 +MAINTAINER="jozee@slitaz.org" 5.11 +DEPENDS="ghostscript cups foomatic-filters" 5.12 +BUILD_DEPENDS="ghostscript-dev" 5.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 5.14 +WEB_SITE="http://pnm2ppa.sourceforge.net/" 5.15 +WGET_URL="http://downloads.sourceforge.net/pnm2ppa/$TARBALL" 5.16 +#http://downloads.sourceforge.net/pnm2ppa/pnm2ppa-1.12.tar.gz 5.17 +# Rules to configure and make the package. 5.18 +compile_rules() 5.19 +{ 5.20 + cd $src 5.21 + make BINDIR="/usr/bin" CONFDIR="/etc" && 5.22 + make BINDIR=$PWD/_pkg/usr/bin CONFDIR=$PWD/_pkg/etc install 5.23 + 5.24 +} 5.25 + 5.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.27 +genpkg_rules() 5.28 +{ 5.29 + mkdir -p $fs/usr/share 5.30 + 5.31 + cp -a $_pkg/etc $fs 5.32 + cp -a $_pkg/usr/bin $fs/usr 5.33 + 5.34 + # Still needs ppd file download for the specific printer from 5.35 + # http://www.linuxprinting.org/show_driver.cgi?driver=pnm2ppa&fromprinter=HP-DeskJet_710C 5.36 + 5.37 +} 5.38 +