wok-current view hplip/receipt @ rev 23611

updated re2c (1.2.1 -> 1.3)
author Hans-G?nter Theisgen
date Tue Apr 14 06:45:07 2020 +0100 (2020-04-14)
parents 63c6355e0368
children f785404cbaa7
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
33 sed -i '40i#include <cups/ppd.h>' \
34 prnt/hpcups/HPCupsFilter.h
36 ./configure \
37 --prefix=/usr \
38 --sysconfdir=/etc \
39 --disable-doc-build \
40 --enable-qt4 \
41 $CONFIGURE_ARGS &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/etc
50 mkdir -p $fs/usr/lib
51 mkdir -p $fs/usr/share
53 cp -a $install/etc $fs
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/cups $fs/usr/lib
56 cp -a $install/usr/lib/python* $fs/usr/lib
57 cp -a $install/usr/lib/sane $fs/usr/lib
58 cp -a $install/usr/lib/*so* $fs/usr/lib
59 cp -a $install/usr/share/cups $fs/usr/share
60 cp -a $install/usr/share/hplip $fs/usr/share
61 cp -a $install/usr/share/ppd $fs/usr/share
63 # compress non-zipped ppd files
64 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
66 # make sure hp-toolbox exists
67 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
69 # remove autostart of hp-daemon
70 rm -rf $fs/etc/sane.d
72 # remove xdg
73 rm -rf $fs/etc/xdg
74 }
76 post_install()
77 {
78 tazpkg reconfigure udev --root="$1"
79 }