wok-current view hplip/receipt @ rev 24804
updated liblouis and liblouis-dev (3.13.0 -> 3.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 10:57:54 2022 +0100 (2022-03-22) |
parents | ba7cbdb5749c |
children | dcb071a5e9e6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.22.2"
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 DEPENDS="cups dbus-python gcc-lib-base ghostscript jpeg libexif
16 libgphoto2 libltdl libusb libv4l net-snmp pygobject
17 PyQt-x11-gpl python sane-backends tiff"
18 BUILD_DEPENDS="cups-dev dbus-dev dbus-python dbus-python-dev gawk
19 ghostscript-dev jpeg-dev libexif-dev libgphoto2-dev libtool
20 libusb-dev net-snmp-dev openssl-dev pkg-config python
21 python-dev Qt4-dev sane-backends-dev tiff-dev"
23 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - https://sourceforge.net/projects/hplip/files/hplip/ 2>/dev/null | \
29 sed '/scope="row/!d;/\/[0-9]/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
30 sed '/scope="row/!d;s|.*/hplip/||;s|/.*||;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
38 ./configure \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --disable-doc-build \
42 --disable-network-build \
43 --enable-qt4 \
44 $CONFIGURE_ARGS &&
45 make &&
46 make -j 1 DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/etc
53 mkdir -p $fs/usr/lib
54 mkdir -p $fs/usr/share
56 cp -a $install/etc $fs
57 cp -a $install/var $fs
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/lib/cups $fs/usr/lib
60 cp -a $install/usr/lib/python* $fs/usr/lib
61 cp -a $install/usr/lib/sane $fs/usr/lib
62 #cp -a $install/usr/lib/hal $fs/usr/lib
63 cp -a $install/usr/lib/*so* $fs/usr/lib
64 cp -a $install/usr/share/cups $fs/usr/share
65 cp -a $install/usr/share/hplip $fs/usr/share
66 cp -a $install/usr/share/ppd $fs/usr/share
67 cp -a $install/usr/share/app* $fs/usr/share
69 # compress non-zipped ppd files
70 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
72 # make sure hp-toolbox exist
73 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
75 # remove autostart of hp-daemon
76 rm -rf $fs/etc/sane.d
78 # remove xdg
79 rm -rf $fs/etc/xdg
80 }
82 post_install()
83 {
84 tazpkg reconfigure udev --root="$1"
85 }