wok-4.x view hplip/receipt @ rev 3439
Add: slurm
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Jun 13 22:15:33 2009 +0000 (2009-06-13) |
parents | 583bdd691510 |
children | 9bb77afebf85 |
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 }
71 post_install()
72 {
73 tazpkg reconfigure udev --root=$1
74 }