wok view hplip/receipt @ rev 13325

libhangul: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 03 09:47:49 2012 +0200 (2012-09-03)
parents cc786b36751d
children 935383e00a80
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 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
41 cp -a $_pkg/etc $fs
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/lib/cups $fs/usr/lib
44 cp -a $_pkg/usr/lib/python* $fs/usr/lib
45 cp -a $_pkg/usr/lib/sane $fs/usr/lib
46 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
47 cp -a $_pkg/usr/share/cups \
48 $_pkg/usr/share/hal \
49 $_pkg/usr/share/hplip \
50 $_pkg/usr/share/ppd \
51 $fs/usr/share
53 # compress non-zipped ppd files
54 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
56 # remove autostart of hp-daemon
57 rm -rf $fs/etc/sane.d
59 # remove xdg
60 rm -rf $fs/etc/xdg
61 }
63 post_install()
64 {
65 # remove the desktop file
66 rm $fs/usr/share/applications/hplip.desktop
68 tazpkg reconfigure udev --root=$1
69 }