wok-6.x annotate hplip/receipt @ rev 14624
Up: hplip to 3.12.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 10:21:01 2013 +0000 (2013-06-01) |
parents | 935383e00a80 |
children | 7896f0694ef6 |
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@5002 | 8 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \ |
slaxemulator@14624 | 9 libgphoto2 libexif gcc-lib-base libtool libv4l net-snmp PyQt-x11-gpl" |
slaxemulator@14624 | 10 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \ |
slaxemulator@14624 | 11 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \ |
slaxemulator@14624 | 12 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev" |
jozee@2765 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@2765 | 14 WEB_SITE="http://hplipopensource.com" |
slaxemulator@14624 | 15 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
jozee@4937 | 16 TAGS="printer driver printing" |
samuel_trassare@11762 | 17 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install." |
jozee@2765 | 18 |
jozee@4515 | 19 # Rules to configure and make the package. --prefix=/usr |
jozee@2765 | 20 compile_rules() |
jozee@2765 | 21 { |
jozee@2765 | 22 cd $src |
slaxemulator@14624 | 23 |
slaxemulator@14624 | 24 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch |
slaxemulator@14624 | 25 patch -Np1 -i $stuff/cups-1.6-buildfix.diff |
slaxemulator@14624 | 26 |
jozee@3470 | 27 ./configure \ |
jozee@2765 | 28 --prefix=/usr \ |
jozee@2765 | 29 --sysconfdir=/etc \ |
jozee@2765 | 30 --disable-doc-build \ |
slaxemulator@14624 | 31 --enable-qt4 \ |
jozee@2765 | 32 $CONFIGURE_ARGS && |
jozee@2765 | 33 make && |
slaxemulator@14624 | 34 make DESTDIR=$DESTDIR install |
jozee@2765 | 35 } |
jozee@2765 | 36 |
jozee@2765 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2765 | 38 genpkg_rules() |
jozee@2765 | 39 { |
jozee@2765 | 40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
jozee@2765 | 41 |
slaxemulator@14624 | 42 cp -a $install/etc $fs |
slaxemulator@14624 | 43 cp -a $install/usr/bin $fs/usr |
slaxemulator@14624 | 44 cp -a $install/usr/lib/cups $fs/usr/lib |
slaxemulator@14624 | 45 cp -a $install/usr/lib/python* $fs/usr/lib |
slaxemulator@14624 | 46 cp -a $install/usr/lib/sane $fs/usr/lib |
slaxemulator@14624 | 47 cp -a $install/usr/lib/*so* $fs/usr/lib |
slaxemulator@14624 | 48 cp -a $install/usr/share/cups \ |
slaxemulator@14624 | 49 $install/usr/share/hplip \ |
slaxemulator@14624 | 50 $install/usr/share/ppd \ |
jozee@2765 | 51 $fs/usr/share |
jozee@2765 | 52 |
samuel_trassare@11762 | 53 # compress non-zipped ppd files |
samuel_trassare@11762 | 54 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \; |
slaxemulator@14624 | 55 |
slaxemulator@14624 | 56 # make sure hp-toolbox exist |
slaxemulator@14624 | 57 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox |
slaxemulator@14624 | 58 |
samuel_trassare@11762 | 59 # remove autostart of hp-daemon |
samuel_trassare@11762 | 60 rm -rf $fs/etc/sane.d |
jozee@2765 | 61 |
samuel_trassare@11762 | 62 # remove xdg |
samuel_trassare@11762 | 63 rm -rf $fs/etc/xdg |
jozee@2765 | 64 } |
jozee@2765 | 65 |
pascal@3175 | 66 post_install() |
pascal@3175 | 67 { |
pascal@3175 | 68 tazpkg reconfigure udev --root=$1 |
pascal@3175 | 69 } |