wok-6.x annotate hplip/receipt @ rev 15094

py3k: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 13 22:28:38 2013 +0000 (2013-08-13)
parents 21ed7ad86c60
children b67414949731
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 \
slaxemulator@14624 19 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev"
jozee@2765 20
jozee@4515 21 # Rules to configure and make the package. --prefix=/usr
jozee@2765 22 compile_rules()
jozee@2765 23 {
jozee@2765 24 cd $src
slaxemulator@14624 25
slaxemulator@14624 26 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
slaxemulator@14624 27 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
slaxemulator@14624 28
jozee@3470 29 ./configure \
jozee@2765 30 --prefix=/usr \
jozee@2765 31 --sysconfdir=/etc \
jozee@2765 32 --disable-doc-build \
slaxemulator@14624 33 --enable-qt4 \
jozee@2765 34 $CONFIGURE_ARGS &&
jozee@2765 35 make &&
slaxemulator@14624 36 make DESTDIR=$DESTDIR install
jozee@2765 37 }
jozee@2765 38
jozee@2765 39 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 40 genpkg_rules()
jozee@2765 41 {
jozee@2765 42 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
jozee@2765 43
slaxemulator@14624 44 cp -a $install/etc $fs
slaxemulator@14624 45 cp -a $install/usr/bin $fs/usr
slaxemulator@14624 46 cp -a $install/usr/lib/cups $fs/usr/lib
slaxemulator@14624 47 cp -a $install/usr/lib/python* $fs/usr/lib
slaxemulator@14624 48 cp -a $install/usr/lib/sane $fs/usr/lib
slaxemulator@14624 49 cp -a $install/usr/lib/*so* $fs/usr/lib
slaxemulator@14624 50 cp -a $install/usr/share/cups \
slaxemulator@14624 51 $install/usr/share/hplip \
slaxemulator@14624 52 $install/usr/share/ppd \
jozee@2765 53 $fs/usr/share
jozee@2765 54
samuel_trassare@11762 55 # compress non-zipped ppd files
samuel_trassare@11762 56 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
slaxemulator@14624 57
slaxemulator@14624 58 # make sure hp-toolbox exist
slaxemulator@14624 59 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
slaxemulator@14624 60
samuel_trassare@11762 61 # remove autostart of hp-daemon
samuel_trassare@11762 62 rm -rf $fs/etc/sane.d
jozee@2765 63
samuel_trassare@11762 64 # remove xdg
samuel_trassare@11762 65 rm -rf $fs/etc/xdg
jozee@2765 66 }
jozee@2765 67
pascal@3175 68 post_install()
pascal@3175 69 {
pascal@3175 70 tazpkg reconfigure udev --root=$1
pascal@3175 71 }