wok annotate hplip/receipt @ rev 23966

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