wok view hplip/receipt @ rev 12562
zbar: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 28 18:23:39 2012 +0200 (2012-04-28) |
parents | c91552bc8307 |
children | ec5c89d3a0b4 |
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 libexif-dev libgphoto2-dev libgphoto2 pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://hplipopensource.com"
13 WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
14 TAGS="printer driver printing"
15 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
17 # Rules to configure and make the package. --prefix=/usr
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --disable-network-build \
25 --disable-doc-build \
26 --disable-gui-build \
27 --disable-fax-build \
28 --disable-qt3 \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
39 cp -a $_pkg/etc $fs
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/cups $fs/usr/lib
42 cp -a $_pkg/usr/lib/python* $fs/usr/lib
43 cp -a $_pkg/usr/lib/sane $fs/usr/lib
44 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
45 cp -a $_pkg/usr/share/cups \
46 $_pkg/usr/share/hal \
47 $_pkg/usr/share/hplip \
48 $_pkg/usr/share/ppd \
49 $fs/usr/share
51 # compress non-zipped ppd files
52 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
54 # remove autostart of hp-daemon
55 rm -rf $fs/etc/sane.d
57 # remove xdg
58 rm -rf $fs/etc/xdg
59 }
61 post_install()
62 {
63 # remove the desktop file
64 rm $fs/usr/share/applications/hplip.desktop
66 tazpkg reconfigure udev --root=$1
67 }