wok-current view hplip/receipt @ rev 4863
xz: add wrapper...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 03 22:37:34 2010 +0100 (2010-02-03) |
parents | 9bb77afebf85 |
children | c6ccd6bc43b1 |
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"
14 # Rules to configure and make the package. --prefix=/usr
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --sysconfdir=/etc \
21 --disable-network-build \
22 --disable-doc-build \
23 --disable-gui-build \
24 --disable-fax-build \
25 --disable-qt3 \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
37 cp -a $_pkg/etc $fs
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/lib/cups $fs/usr/lib
40 cp -a $_pkg/usr/lib/python* $fs/usr/lib
41 cp -a $_pkg/usr/lib/sane $fs/usr/lib
42 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
43 cp -a $_pkg/usr/share/cups \
44 $_pkg/usr/share/hal \
45 $_pkg/usr/share/hplip \
46 $_pkg/usr/share/ppd \
47 $fs/usr/share
49 # compress snon zipped ppd files
50 find $fs/usr/share/ppd/HP -name "*.ppd" | xargs gzip -n9
52 # remove autostart of hp-daemon
53 rm -rf $fs/etc/sane.d
54 # remove xdg
55 rm -rf $fs/etc/xdg
58 # remove .desktop file as we compiled without pyqt3 support
59 rm -rf $fs/usr/share/applications/*
62 }
64 post_install()
65 {
66 tazpkg reconfigure udev --root=$1
67 }