wok view hplip/receipt @ rev 15556

Up: thunderbird-langpack-es_ES (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:37:37 2013 +0100 (2013-11-24)
parents 21ed7ad86c60
children b67414949731
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 libtool libv4l net-snmp PyQt-x11-gpl"
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"
21 # Rules to configure and make the package. --prefix=/usr
22 compile_rules()
23 {
24 cd $src
26 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
27 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --disable-doc-build \
33 --enable-qt4 \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
44 cp -a $install/etc $fs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/cups $fs/usr/lib
47 cp -a $install/usr/lib/python* $fs/usr/lib
48 cp -a $install/usr/lib/sane $fs/usr/lib
49 cp -a $install/usr/lib/*so* $fs/usr/lib
50 cp -a $install/usr/share/cups \
51 $install/usr/share/hplip \
52 $install/usr/share/ppd \
53 $fs/usr/share
55 # compress non-zipped ppd files
56 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
58 # make sure hp-toolbox exist
59 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
61 # remove autostart of hp-daemon
62 rm -rf $fs/etc/sane.d
64 # remove xdg
65 rm -rf $fs/etc/xdg
66 }
68 post_install()
69 {
70 tazpkg reconfigure udev --root=$1
71 }