wok-next view hplip/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 757d032c55c7 |
children | d6378d455338 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hplip"
4 VERSION="3.12.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and \
7 some LaserJet"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://hplipopensource.com"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
16 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 libusb-dev \
17 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
18 libtool"
20 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
22 compile_rules() {
23 # fix build with cups 1.6 - FC hplip-ipp-accessors.patch
24 patch -Np1 -i $stuff/cups-1.6-buildfix.diff
26 ./configure \
27 --disable-doc-build \
28 --enable-qt4 \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 genpkg_rules() {
35 copy @std
36 # compress non-zipped ppd files
37 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
38 # make sure hp-toolbox exist
39 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
40 # remove autostart of hp-daemon
41 rm -rf $fs/etc/sane.d
42 # remove xdg
43 rm -rf $fs/etc/xdg
44 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff \
45 sane-backends libgphoto2 libexif gcc-lib-base libltdl v4l-utils net-snmp \
46 PyQt-x11-gpl"
47 TAGS="printer driver printing"
48 }
50 post_install() {
51 tazpkg reconfigure eudev --root="$1"
52 }