wok view hplip/receipt @ rev 24122

updated xfig again (3.2.5b -> 3.2.8b)
author Hans-G?nter Theisgen
date Tue Oct 05 17:12:25 2021 +0100 (2021-10-05)
parents ab0d30498b02
children ba7cbdb5749c
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.21.8"
5 CATEGORY="system-tools"
6 TAGS="printer driver printing"
7 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and 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 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
17 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
18 libgphoto2 libexif gcc-lib-base libltdl libv4l net-snmp PyQt-x11-gpl pygobject"
19 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev openssl-dev gawk \
20 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
21 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
22 libtool"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --disable-doc-build \
32 --disable-network-build \
33 --enable-qt4 \
34 $CONFIGURE_ARGS &&
35 make &&
36 make -j 1 DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/etc
43 mkdir -p $fs/usr/lib
44 mkdir -p $fs/usr/share
46 cp -a $install/etc $fs
47 cp -a $install/var $fs
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib/cups $fs/usr/lib
50 cp -a $install/usr/lib/python* $fs/usr/lib
51 cp -a $install/usr/lib/sane $fs/usr/lib
52 #cp -a $install/usr/lib/hal $fs/usr/lib
53 cp -a $install/usr/lib/*so* $fs/usr/lib
54 cp -a $install/usr/share/cups $fs/usr/share
55 cp -a $install/usr/share/hplip $fs/usr/share
56 cp -a $install/usr/share/ppd $fs/usr/share
57 cp -a $install/usr/share/app* $fs/usr/share
59 # compress non-zipped ppd files
60 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
62 # make sure hp-toolbox exists
63 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
65 # remove autostart of hp-daemon
66 rm -rf $fs/etc/sane.d
68 # remove xdg
69 rm -rf $fs/etc/xdg
70 }
72 post_install()
73 {
74 tazpkg reconfigure udev --root="$1"
75 }