wok-4.x annotate hplip/receipt @ rev 4072
syasokoban: cook with gcc 4.4 serie
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 13 02:47:12 2009 +0200 (2009-09-13) |
parents | f25b1712883d |
children | 26631d3b1e16 |
rev | line source |
---|---|
jozee@2765 | 1 # SliTaz package receipt. |
jozee@2765 | 2 |
jozee@2765 | 3 PACKAGE="hplip" |
jozee@3470 | 4 VERSION="3.9.4b" |
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@3470 | 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 python python-dev dbus-python" |
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@3470 | 14 # Rules to configure and make the package. --prefix=/usr \ |
jozee@2765 | 15 compile_rules() |
jozee@2765 | 16 { |
jozee@2765 | 17 cd $src |
jozee@3470 | 18 while read file; do |
jozee@3470 | 19 [ -f done.$file ] && continue |
jozee@3470 | 20 echo "Apply $file..." |
jozee@3470 | 21 patch -p0 < ../stuff/$PACKAGE-$VERSION-$file || return 1 |
jozee@3470 | 22 touch done.$file |
jozee@3470 | 23 done <<EOT |
jozee@3470 | 24 glibc210.u |
jozee@3470 | 25 EOT |
jozee@3470 | 26 ./configure \ |
jozee@2765 | 27 --prefix=/usr \ |
jozee@2765 | 28 --sysconfdir=/etc \ |
jozee@2765 | 29 --disable-network-build \ |
jozee@2765 | 30 --disable-doc-build \ |
jozee@2765 | 31 --disable-gui-build \ |
jozee@2765 | 32 --disable-fax-build \ |
jozee@2765 | 33 --disable-qt3 \ |
jozee@2765 | 34 $CONFIGURE_ARGS && |
jozee@2765 | 35 make && |
jozee@2765 | 36 make DESTDIR=$PWD/_pkg install |
jozee@2765 | 37 |
jozee@2765 | 38 } |
jozee@2765 | 39 |
jozee@2765 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2765 | 41 genpkg_rules() |
jozee@2765 | 42 { |
jozee@2765 | 43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
jozee@2765 | 44 |
jozee@2765 | 45 cp -a $_pkg/etc $fs |
jozee@2765 | 46 cp -a $_pkg/usr/bin $fs/usr |
jozee@2765 | 47 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
jozee@2765 | 48 cp -a $_pkg/usr/lib/python* $fs/usr/lib |
jozee@2765 | 49 cp -a $_pkg/usr/lib/sane $fs/usr/lib |
jozee@2765 | 50 cp -a $_pkg/usr/lib/*so* $fs/usr/lib |
jozee@2765 | 51 cp -a $_pkg/usr/share/cups \ |
jozee@2765 | 52 $_pkg/usr/share/hal \ |
jozee@2765 | 53 $_pkg/usr/share/hplip \ |
jozee@2765 | 54 $_pkg/usr/share/ppd \ |
jozee@2765 | 55 $fs/usr/share |
jozee@2765 | 56 |
jozee@3470 | 57 # compress snon zipped ppd files |
jozee@3470 | 58 find $fs/usr/share/ppd/HP -name "*.ppd" | xargs gzip -n9 |
jozee@2765 | 59 |
jozee@2765 | 60 # remove autostart of hp-daemon |
jozee@2765 | 61 rm -rf $fs/etc/sane.d |
jozee@2765 | 62 # remove xdg |
jozee@2765 | 63 rm -rf $fs/etc/xdg |
jozee@2765 | 64 |
jozee@2765 | 65 # move udev rules to /lib/udev/rules.d |
jozee@2765 | 66 mkdir -p $fs/lib/udev/rules.d |
jozee@2765 | 67 mv $fs/etc/udev/rules.d/* $fs/lib/udev/rules.d/ |
jozee@2765 | 68 rm -rf $fs/etc/udev |
jozee@2765 | 69 # remove lp user, it's not used in slitaz |
jozee@2765 | 70 sed -i 's|OWNER="lp", ||g' $fs/lib/udev/rules.d/55-hpmud.rules |
jozee@2765 | 71 |
jozee@2765 | 72 # remove .desktop file as we compiled without pyqt3 support |
jozee@2765 | 73 rm -rf $fs/usr/share/applications/* |
jozee@2765 | 74 |
jozee@2765 | 75 |
jozee@2765 | 76 } |
jozee@2765 | 77 |
pascal@3175 | 78 post_install() |
pascal@3175 | 79 { |
pascal@3175 | 80 tazpkg reconfigure udev --root=$1 |
pascal@3175 | 81 } |