wok view hplip/receipt @ rev 14782
gpxe: remove wrong triggers
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 15:23:38 2013 +0200 (2013-07-05) |
parents | 935383e00a80 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.12.11"
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 libgphoto2 libexif gcc-lib-base libtool libv4l net-snmp PyQt-x11-gpl"
10 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
11 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
12 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://hplipopensource.com"
15 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 TAGS="printer driver printing"
17 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
19 # Rules to configure and make the package. --prefix=/usr
20 compile_rules()
21 {
22 cd $src
24 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
25 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --disable-doc-build \
31 --enable-qt4 \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
42 cp -a $install/etc $fs
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/cups $fs/usr/lib
45 cp -a $install/usr/lib/python* $fs/usr/lib
46 cp -a $install/usr/lib/sane $fs/usr/lib
47 cp -a $install/usr/lib/*so* $fs/usr/lib
48 cp -a $install/usr/share/cups \
49 $install/usr/share/hplip \
50 $install/usr/share/ppd \
51 $fs/usr/share
53 # compress non-zipped ppd files
54 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
56 # make sure hp-toolbox exist
57 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
59 # remove autostart of hp-daemon
60 rm -rf $fs/etc/sane.d
62 # remove xdg
63 rm -rf $fs/etc/xdg
64 }
66 post_install()
67 {
68 tazpkg reconfigure udev --root=$1
69 }