wok view hplip/receipt @ rev 23223

hplip: inserted include statement
author Hans-G?nter Theisgen
date Mon Mar 23 15:59:35 2020 +0100 (2020-03-23)
parents 174738f4e9f9
children f8abbc235871
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.12.11"
5 CATEGORY="system-tools"
6 TAGS="printer driver printing"
7 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://hplipopensource.com"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
17 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
18 libgphoto2 libexif gcc-lib-base libltdl libv4l net-snmp PyQt-x11-gpl pygobject"
19 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
20 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
21 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
22 libtool"
24 # Rules to configure and make the package. --prefix=/usr
25 compile_rules()
26 {
27 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
28 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
30 # 3.12.11
31 sed -i '46i#include <cups/ppd.h>' \
32 prnt/hpijs/hpcupsfax.cpp
34 ./configure \
35 --prefix=/usr \
36 --sysconfdir=/etc \
37 --disable-doc-build \
38 --enable-qt4 \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/etc
48 mkdir -p $fs/usr/lib
49 mkdir -p $fs/usr/share
51 cp -a $install/etc $fs
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/cups $fs/usr/lib
54 cp -a $install/usr/lib/python* $fs/usr/lib
55 cp -a $install/usr/lib/sane $fs/usr/lib
56 cp -a $install/usr/lib/*so* $fs/usr/lib
57 cp -a $install/usr/share/cups $fs/usr/share
58 cp -a $install/usr/share/hplip $fs/usr/share
59 cp -a $install/usr/share/ppd $fs/usr/share
61 # compress non-zipped ppd files
62 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
64 # make sure hp-toolbox exists
65 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
67 # remove autostart of hp-daemon
68 rm -rf $fs/etc/sane.d
70 # remove xdg
71 rm -rf $fs/etc/xdg
72 }
74 post_install()
75 {
76 tazpkg reconfigure udev --root="$1"
77 }