wok-next annotate hplip/receipt @ rev 20919
dbus-python -> python-dbus
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 22 09:09:15 2018 +0300 (2018-08-22) |
parents | d6378d455338 |
children | 9f9a38d220f6 |
rev | line source |
---|---|
al@20534 | 1 # SliTaz package receipt v2. |
jozee@2765 | 2 |
jozee@2765 | 3 PACKAGE="hplip" |
al@20534 | 4 VERSION="3.12.11" |
jozee@2765 | 5 CATEGORY="system-tools" |
al@20534 | 6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and \ |
al@20534 | 7 some LaserJet" |
jozee@2765 | 8 MAINTAINER="jozee@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
al@20534 | 10 WEB_SITE="http://hplipopensource.com" |
al@20534 | 11 |
pascal@15002 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15002 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15002 | 14 |
al@20919 | 15 BUILD_DEPENDS="ghostscript-dev python-dbus-dev sane-backends-dev \ |
al@20513 | 16 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 libusb-dev \ |
al@20919 | 17 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev python-dbus net-snmp-dev \ |
pascal@15628 | 18 libtool" |
jozee@2765 | 19 |
al@20534 | 20 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install." |
slaxemulator@14624 | 21 |
al@20534 | 22 compile_rules() { |
jozee@3470 | 23 ./configure \ |
jozee@2765 | 24 --disable-doc-build \ |
slaxemulator@14624 | 25 --enable-qt4 \ |
jozee@2765 | 26 $CONFIGURE_ARGS && |
jozee@2765 | 27 make && |
slaxemulator@14624 | 28 make DESTDIR=$DESTDIR install |
jozee@2765 | 29 } |
jozee@2765 | 30 |
al@20534 | 31 genpkg_rules() { |
al@20534 | 32 copy @std |
samuel_trassare@11762 | 33 # compress non-zipped ppd files |
samuel_trassare@11762 | 34 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \; |
slaxemulator@14624 | 35 # make sure hp-toolbox exist |
al@20534 | 36 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox |
samuel_trassare@11762 | 37 # remove autostart of hp-daemon |
samuel_trassare@11762 | 38 rm -rf $fs/etc/sane.d |
samuel_trassare@11762 | 39 # remove xdg |
samuel_trassare@11762 | 40 rm -rf $fs/etc/xdg |
al@20919 | 41 DEPENDS="ghostscript python cups python-dbus libusb jpeg tiff \ |
al@20604 | 42 sane-backends libgphoto2 libexif gcc-lib-base libltdl v4l-utils net-snmp \ |
al@20534 | 43 PyQt-x11-gpl" |
al@20534 | 44 TAGS="printer driver printing" |
jozee@2765 | 45 } |
jozee@2765 | 46 |
al@20534 | 47 post_install() { |
al@20534 | 48 tazpkg reconfigure eudev --root="$1" |
pascal@3175 | 49 } |