wok view hplip/receipt @ rev 20218

Up tazlito (484)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 17:56:27 2018 +0100 (2018-02-25)
parents 5dd97872d463
children 63c6355e0368
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://hplipopensource.com"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="printer driver printing"
13 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
15 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
16 libgphoto2 libexif gcc-lib-base libltdl libv4l net-snmp PyQt-x11-gpl pygobject"
17 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
18 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
19 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
20 libtool"
22 # Rules to configure and make the package. --prefix=/usr
23 compile_rules()
24 {
25 cd $src
27 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
28 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --disable-doc-build \
34 --enable-qt4 \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR 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 $install/etc $fs
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/cups $fs/usr/lib
48 cp -a $install/usr/lib/python* $fs/usr/lib
49 cp -a $install/usr/lib/sane $fs/usr/lib
50 cp -a $install/usr/lib/*so* $fs/usr/lib
51 cp -a $install/usr/share/cups \
52 $install/usr/share/hplip \
53 $install/usr/share/ppd \
54 $fs/usr/share
56 # compress non-zipped ppd files
57 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
59 # make sure hp-toolbox exist
60 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
62 # remove autostart of hp-daemon
63 rm -rf $fs/etc/sane.d
65 # remove xdg
66 rm -rf $fs/etc/xdg
67 }
69 post_install()
70 {
71 tazpkg reconfigure udev --root="$1"
72 }