wok-current view hplip/receipt @ rev 24496
updated dosfstools (4.1 -> 4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 14:05:47 2022 +0100 (2022-02-19) |
parents | 1994c6e018e7 |
children | 2a8e7fee7f14 |
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 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - https://sourceforge.net/projects/hplip/files/hplip/ 2>/dev/null | \
28 sed '/scope="row/!d;/\/[0-9]/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
29 sed '/scope="row/!d;s|.*/hplip/||;s|/.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
36 ./configure \
37 --prefix=/usr \
38 --sysconfdir=/etc \
39 --disable-doc-build \
40 --disable-network-build \
41 --enable-qt4 \
42 $CONFIGURE_ARGS &&
43 make &&
44 make -j 1 DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/etc
51 mkdir -p $fs/usr/lib
52 mkdir -p $fs/usr/share
54 cp -a $install/etc $fs
55 cp -a $install/var $fs
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/lib/cups $fs/usr/lib
58 cp -a $install/usr/lib/python* $fs/usr/lib
59 cp -a $install/usr/lib/sane $fs/usr/lib
60 #cp -a $install/usr/lib/hal $fs/usr/lib
61 cp -a $install/usr/lib/*so* $fs/usr/lib
62 cp -a $install/usr/share/cups $fs/usr/share
63 cp -a $install/usr/share/hplip $fs/usr/share
64 cp -a $install/usr/share/ppd $fs/usr/share
65 cp -a $install/usr/share/app* $fs/usr/share
67 # compress non-zipped ppd files
68 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
70 # make sure hp-toolbox exists
71 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
73 # remove autostart of hp-daemon
74 rm -rf $fs/etc/sane.d
76 # remove xdg
77 rm -rf $fs/etc/xdg
78 }
80 post_install()
81 {
82 tazpkg reconfigure udev --root="$1"
83 }