wok-6.x view hplip/receipt @ rev 13362
hplip: add parallel support
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Sep 13 00:36:01 2012 +0000 (2012-09-13) |
parents | ec5c89d3a0b4 |
children | 21ed7ad86c60 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.12.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
9 libgphoto2 libexif gcc-lib-base libtool libv4l"
10 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends \
11 libexif-dev libgphoto2-dev libgphoto2 pkg-config libusb-dev jpeg-dev cups-dev \
12 dbus-dev tiff-dev python python-dev dbus-python libtool"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://hplipopensource.com"
15 WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
16 TAGS="printer driver printing"
17 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
19 # Rules to configure and make the package. --prefix=/usr
20 compile_rules()
21 {
22 cd $src
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --disable-network-build \
27 --disable-doc-build \
28 --disable-gui-build \
29 --disable-fax-build \
30 --disable-qt3 \
31 --enable-pp-build \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
42 cp -a $_pkg/etc $fs
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/lib/cups $fs/usr/lib
45 cp -a $_pkg/usr/lib/python* $fs/usr/lib
46 cp -a $_pkg/usr/lib/sane $fs/usr/lib
47 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
48 cp -a $_pkg/usr/share/cups \
49 $_pkg/usr/share/hal \
50 $_pkg/usr/share/hplip \
51 $_pkg/usr/share/ppd \
52 $fs/usr/share
54 # compress non-zipped ppd files
55 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
57 # remove autostart of hp-daemon
58 rm -rf $fs/etc/sane.d
60 # remove xdg
61 rm -rf $fs/etc/xdg
62 }
64 post_install()
65 {
66 # remove the desktop file
67 rm $fs/usr/share/applications/hplip.desktop
69 tazpkg reconfigure udev --root=$1
70 }