wok-current view hplip/receipt @ rev 4937

add/improve TAGS h* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 14:01:36 2010 +0000 (2010-02-16)
parents 26631d3b1e16
children 8d3f3ded1725
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.9.10"
5 CATEGORY="system-tools"
6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends libgphoto2 libexif"
9 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends libexif-dev libgphoto2-dev libgphoto2 pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://hplipopensource.com"
12 WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
13 TAGS="printer driver printing"
15 # Rules to configure and make the package. --prefix=/usr
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --disable-network-build \
23 --disable-doc-build \
24 --disable-gui-build \
25 --disable-fax-build \
26 --disable-qt3 \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
38 cp -a $_pkg/etc $fs
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib/cups $fs/usr/lib
41 cp -a $_pkg/usr/lib/python* $fs/usr/lib
42 cp -a $_pkg/usr/lib/sane $fs/usr/lib
43 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
44 cp -a $_pkg/usr/share/cups \
45 $_pkg/usr/share/hal \
46 $_pkg/usr/share/hplip \
47 $_pkg/usr/share/ppd \
48 $fs/usr/share
50 # compress snon zipped ppd files
51 find $fs/usr/share/ppd/HP -name "*.ppd" | xargs gzip -n9
53 # remove autostart of hp-daemon
54 rm -rf $fs/etc/sane.d
55 # remove xdg
56 rm -rf $fs/etc/xdg
59 # remove .desktop file as we compiled without pyqt3 support
60 rm -rf $fs/usr/share/applications/*
63 }
65 post_install()
66 {
67 tazpkg reconfigure udev --root=$1
68 }