wok-4.x view hplip/receipt @ rev 3939

emacs 23.1: small adjustments
author Dominique Corbex <domcox@users.sourceforge.net>
date Sat Aug 22 11:15:56 2009 +0200 (2009-08-22)
parents f25b1712883d
children 26631d3b1e16
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.9.4b"
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 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 while read file; do
19 [ -f done.$file ] && continue
20 echo "Apply $file..."
21 patch -p0 < ../stuff/$PACKAGE-$VERSION-$file || return 1
22 touch done.$file
23 done <<EOT
24 glibc210.u
25 EOT
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --disable-network-build \
30 --disable-doc-build \
31 --disable-gui-build \
32 --disable-fax-build \
33 --disable-qt3 \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
45 cp -a $_pkg/etc $fs
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/lib/cups $fs/usr/lib
48 cp -a $_pkg/usr/lib/python* $fs/usr/lib
49 cp -a $_pkg/usr/lib/sane $fs/usr/lib
50 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
51 cp -a $_pkg/usr/share/cups \
52 $_pkg/usr/share/hal \
53 $_pkg/usr/share/hplip \
54 $_pkg/usr/share/ppd \
55 $fs/usr/share
57 # compress snon zipped ppd files
58 find $fs/usr/share/ppd/HP -name "*.ppd" | xargs gzip -n9
60 # remove autostart of hp-daemon
61 rm -rf $fs/etc/sane.d
62 # remove xdg
63 rm -rf $fs/etc/xdg
65 # move udev rules to /lib/udev/rules.d
66 mkdir -p $fs/lib/udev/rules.d
67 mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/
68 rm -rf $fs/etc/udev
69 # remove lp user, it's not used in slitaz
70 sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules
72 # remove .desktop file as we compiled without pyqt3 support
73 rm -rf $fs/usr/share/applications/*
76 }
78 post_install()
79 {
80 tazpkg reconfigure udev --root=$1
81 }