wok-4.x view hplip/receipt @ rev 12430

xorg-libXfont: security fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 13 12:47:34 2014 +0000 (2014-01-13)
parents cc786b36751d
children
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 --enable-pp-build \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
40 cp -a $_pkg/etc $fs
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/lib/cups $fs/usr/lib
43 cp -a $_pkg/usr/lib/python* $fs/usr/lib
44 cp -a $_pkg/usr/lib/sane $fs/usr/lib
45 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
46 cp -a $_pkg/usr/share/cups \
47 $_pkg/usr/share/hal \
48 $_pkg/usr/share/hplip \
49 $_pkg/usr/share/ppd \
50 $fs/usr/share
52 # compress non-zipped ppd files
53 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
55 # remove autostart of hp-daemon
56 rm -rf $fs/etc/sane.d
58 # remove xdg
59 rm -rf $fs/etc/xdg
60 }
62 post_install()
63 {
64 # remove the desktop file
65 rm $fs/usr/share/applications/hplip.desktop
67 tazpkg reconfigure udev --root=$1
68 }