wok-6.x annotate hplip/receipt @ rev 17515
Up screen (4.2.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 13 15:45:14 2015 +0100 (2015-01-13) |
parents | 7896f0694ef6 |
children | 9e01bc6321ea |
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" |
jozee@2765 | 6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet" |
jozee@2765 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@15002 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15002 | 10 WEB_SITE="http://hplipopensource.com" |
pascal@15002 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15002 | 12 TAGS="printer driver printing" |
pascal@15002 | 13 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install." |
pascal@15002 | 14 |
pascal@5002 | 15 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \ |
slaxemulator@14624 | 16 libgphoto2 libexif gcc-lib-base libtool libv4l net-snmp PyQt-x11-gpl" |
slaxemulator@14624 | 17 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \ |
slaxemulator@14624 | 18 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \ |
pascal@15628 | 19 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \ |
pascal@15628 | 20 libtool" |
jozee@2765 | 21 |
jozee@4515 | 22 # Rules to configure and make the package. --prefix=/usr |
jozee@2765 | 23 compile_rules() |
jozee@2765 | 24 { |
jozee@2765 | 25 cd $src |
slaxemulator@14624 | 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 |
jozee@3470 | 30 ./configure \ |
jozee@2765 | 31 --prefix=/usr \ |
jozee@2765 | 32 --sysconfdir=/etc \ |
jozee@2765 | 33 --disable-doc-build \ |
slaxemulator@14624 | 34 --enable-qt4 \ |
jozee@2765 | 35 $CONFIGURE_ARGS && |
jozee@2765 | 36 make && |
slaxemulator@14624 | 37 make DESTDIR=$DESTDIR install |
jozee@2765 | 38 } |
jozee@2765 | 39 |
jozee@2765 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2765 | 41 genpkg_rules() |
jozee@2765 | 42 { |
jozee@2765 | 43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
jozee@2765 | 44 |
slaxemulator@14624 | 45 cp -a $install/etc $fs |
slaxemulator@14624 | 46 cp -a $install/usr/bin $fs/usr |
slaxemulator@14624 | 47 cp -a $install/usr/lib/cups $fs/usr/lib |
slaxemulator@14624 | 48 cp -a $install/usr/lib/python* $fs/usr/lib |
slaxemulator@14624 | 49 cp -a $install/usr/lib/sane $fs/usr/lib |
slaxemulator@14624 | 50 cp -a $install/usr/lib/*so* $fs/usr/lib |
slaxemulator@14624 | 51 cp -a $install/usr/share/cups \ |
slaxemulator@14624 | 52 $install/usr/share/hplip \ |
slaxemulator@14624 | 53 $install/usr/share/ppd \ |
jozee@2765 | 54 $fs/usr/share |
jozee@2765 | 55 |
samuel_trassare@11762 | 56 # compress non-zipped ppd files |
samuel_trassare@11762 | 57 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \; |
slaxemulator@14624 | 58 |
slaxemulator@14624 | 59 # make sure hp-toolbox exist |
slaxemulator@14624 | 60 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox |
slaxemulator@14624 | 61 |
samuel_trassare@11762 | 62 # remove autostart of hp-daemon |
samuel_trassare@11762 | 63 rm -rf $fs/etc/sane.d |
jozee@2765 | 64 |
samuel_trassare@11762 | 65 # remove xdg |
samuel_trassare@11762 | 66 rm -rf $fs/etc/xdg |
jozee@2765 | 67 } |
jozee@2765 | 68 |
pascal@3175 | 69 post_install() |
pascal@3175 | 70 { |
pascal@3175 | 71 tazpkg reconfigure udev --root=$1 |
pascal@3175 | 72 } |