wok-6.x annotate hplip/receipt @ rev 2979

opal-dev: fix path for libopal_s.a
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 11 02:14:35 2009 +0200 (2009-05-11)
parents b1c8a17cf2ac
children f25b1712883d
rev   line source
jozee@2765 1 # SliTaz package receipt.
jozee@2765 2
jozee@2765 3 PACKAGE="hplip"
jozee@2765 4 VERSION="3.9.2"
jozee@2765 5 CATEGORY="system-tools"
jozee@2765 6 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
jozee@2765 7 MAINTAINER="jozee@slitaz.org"
pascal@2845 8 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends"
jozee@2765 9 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends pkg-config libusb-dev jpeg-dev cups-dev dbus-dev tiff-dev"
jozee@2765 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@2765 11 WEB_SITE="http://hplipopensource.com"
jozee@2765 12 WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
jozee@2765 13
jozee@2765 14 # Rules to configure and make the package.
jozee@2765 15 compile_rules()
jozee@2765 16 {
jozee@2765 17 cd $src
jozee@2765 18 ./configure \
jozee@2765 19 --prefix=/usr \
jozee@2765 20 --sysconfdir=/etc \
jozee@2765 21 --disable-network-build \
jozee@2765 22 --disable-doc-build \
jozee@2765 23 --disable-gui-build \
jozee@2765 24 --disable-fax-build \
jozee@2765 25 --disable-qt3 \
jozee@2765 26 $CONFIGURE_ARGS &&
jozee@2765 27 make &&
jozee@2765 28 make DESTDIR=$PWD/_pkg install
jozee@2765 29
jozee@2765 30 }
jozee@2765 31
jozee@2765 32 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 33 genpkg_rules()
jozee@2765 34 {
jozee@2765 35 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
jozee@2765 36
jozee@2765 37 cp -a $_pkg/etc $fs
jozee@2765 38 cp -a $_pkg/usr/bin $fs/usr
jozee@2765 39 cp -a $_pkg/usr/lib/cups $fs/usr/lib
jozee@2765 40 cp -a $_pkg/usr/lib/python* $fs/usr/lib
jozee@2765 41 cp -a $_pkg/usr/lib/sane $fs/usr/lib
jozee@2765 42 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@2765 43 cp -a $_pkg/usr/share/cups \
jozee@2765 44 $_pkg/usr/share/hal \
jozee@2765 45 $_pkg/usr/share/hplip \
jozee@2765 46 $_pkg/usr/share/ppd \
jozee@2765 47 $fs/usr/share
jozee@2765 48
jozee@2765 49
jozee@2765 50 # remove non zipped ppd files
jozee@2765 51 rm -rf $fs/usr/share/ppd/HP/*.ppd
jozee@2765 52
jozee@2765 53 # remove autostart of hp-daemon
jozee@2765 54 rm -rf $fs/etc/sane.d
jozee@2765 55 # remove xdg
jozee@2765 56 rm -rf $fs/etc/xdg
jozee@2765 57
jozee@2765 58 # move udev rules to /lib/udev/rules.d
jozee@2765 59 mkdir -p $fs/lib/udev/rules.d
jozee@2765 60 mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/
jozee@2765 61 rm -rf $fs/etc/udev
jozee@2765 62 # remove lp user, it's not used in slitaz
jozee@2765 63 sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules
jozee@2765 64
jozee@2765 65 # remove .desktop file as we compiled without pyqt3 support
jozee@2765 66 rm -rf $fs/usr/share/applications/*
jozee@2765 67
jozee@2765 68
jozee@2765 69 }
jozee@2765 70