wok view hplip/receipt @ rev 3159
Up: curl (7.19.5)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 24 21:41:29 2009 +0200 (2009-05-24) |
parents | b1c8a17cf2ac |
children | f25b1712883d |
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.9.2"
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"
9 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev"
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.
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
50 # remove non zipped ppd files
51 rm -rf $fs/usr/share/ppd/HP/*.ppd
53 # remove autostart of hp-daemon
54 rm -rf $fs/etc/sane.d
55 # remove xdg
56 rm -rf $fs/etc/xdg
58 # move udev rules to /lib/udev/rules.d
59 mkdir -p $fs/lib/udev/rules.d
60 mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/
61 rm -rf $fs/etc/udev
62 # remove lp user, it's not used in slitaz
63 sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules
65 # remove .desktop file as we compiled without pyqt3 support
66 rm -rf $fs/usr/share/applications/*
69 }