wok-current diff hplip/receipt @ rev 2839

Up: slitaz-menus (1.5) - Provide Hungarian (Thanks Mih?ly Horv?th)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 30 21:52:17 2009 +0200 (2009-04-30)
parents
children 583bdd691510
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hplip/receipt	Thu Apr 30 21:52:17 2009 +0200
     1.3 @@ -0,0 +1,70 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hplip"
     1.7 +VERSION="3.9.2" 
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff"
    1.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"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://hplipopensource.com"
    1.15 +WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$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 +		--disable-network-build \
    1.25 +		--disable-doc-build \
    1.26 +		--disable-gui-build \
    1.27 +		--disable-fax-build \
    1.28 +		--disable-qt3 \
    1.29 +		$CONFIGURE_ARGS &&
    1.30 +	make &&
    1.31 +	make DESTDIR=$PWD/_pkg install
    1.32 +	
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
    1.39 +	
    1.40 +	cp -a $_pkg/etc   $fs
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42 +	cp -a $_pkg/usr/lib/cups $fs/usr/lib
    1.43 +	cp -a $_pkg/usr/lib/python* $fs/usr/lib
    1.44 +	cp -a $_pkg/usr/lib/sane $fs/usr/lib
    1.45 +	cp -a $_pkg/usr/lib/*so* $fs/usr/lib
    1.46 +	cp -a $_pkg/usr/share/cups \
    1.47 +		   $_pkg/usr/share/hal \
    1.48 +		   $_pkg/usr/share/hplip \
    1.49 +		   $_pkg/usr/share/ppd \
    1.50 +		   $fs/usr/share
    1.51 +
    1.52 +	
    1.53 +	 # remove non zipped ppd files
    1.54 + rm -rf $fs/usr/share/ppd/HP/*.ppd
    1.55 + 
    1.56 +  # remove autostart of hp-daemon
    1.57 +  rm -rf $fs/etc/sane.d
    1.58 + # remove xdg
    1.59 + rm -rf $fs/etc/xdg
    1.60 + 
    1.61 + # move udev rules to /lib/udev/rules.d
    1.62 + mkdir -p $fs/lib/udev/rules.d
    1.63 + mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/
    1.64 + rm -rf $fs/etc/udev
    1.65 + # remove lp user, it's not used in slitaz
    1.66 + sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules
    1.67 +
    1.68 +# remove .desktop file as we compiled without pyqt3 support
    1.69 +rm -rf $fs/usr/share/applications/*
    1.70 +
    1.71 +	
    1.72 +}
    1.73 +