wok-current view hplip/receipt @ rev 6456
Added xbill game.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Sep 28 16:05:36 2010 +0000 (2010-09-28) |
parents | c6ccd6bc43b1 |
children | fa131fcd6f65 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hplip"
4 VERSION="3.9.10"
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"
16 # Rules to configure and make the package. --prefix=/usr
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --disable-network-build \
24 --disable-doc-build \
25 --disable-gui-build \
26 --disable-fax-build \
27 --disable-qt3 \
28 $CONFIGURE_ARGS &&
29 make &&
30 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 snon zipped ppd files
52 find $fs/usr/share/ppd/HP -name "*.ppd" | xargs gzip -n9
54 # remove autostart of hp-daemon
55 rm -rf $fs/etc/sane.d
56 # remove xdg
57 rm -rf $fs/etc/xdg
60 # remove .desktop file as we compiled without pyqt3 support
61 rm -rf $fs/usr/share/applications/*
64 }
66 post_install()
67 {
68 tazpkg reconfigure udev --root=$1
69 }