wok-next view hplip/receipt @ rev 20577

More fix libtool
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 14 03:34:33 2018 +0300 (2018-04-14)
parents d43bf7aae921
children 10df65db91ad
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hplip"
4 VERSION="3.12.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and \
7 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 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
16 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 libusb-dev \
17 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
18 libtool"
20 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
22 compile_rules() {
23 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
24 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
26 ./configure \
27 --disable-doc-build \
28 --enable-qt4 \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 genpkg_rules() {
35 copy @std
36 # compress non-zipped ppd files
37 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
38 # make sure hp-toolbox exist
39 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
40 # remove autostart of hp-daemon
41 rm -rf $fs/etc/sane.d
42 # remove xdg
43 rm -rf $fs/etc/xdg
44 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff \
45 sane-backends libgphoto2 libexif gcc-lib-base libltdl libv4l net-snmp \
46 PyQt-x11-gpl"
47 TAGS="printer driver printing"
48 }
50 post_install() {
51 tazpkg reconfigure eudev --root="$1"
52 }