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

Add perl-ipc-run
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 06 15:25:00 2013 +0200 (2013-04-06)
parents ec5c89d3a0b4
children 21ed7ad86c60
rev   line source
jozee@2765 1 # SliTaz package receipt.
jozee@2765 2
jozee@2765 3 PACKAGE="hplip"
samuel_trassare@11762 4 VERSION="3.12.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@5002 8 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
pascal@5002 9 libgphoto2 libexif gcc-lib-base libtool libv4l"
pascal@12902 10 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends \
pascal@12902 11 libexif-dev libgphoto2-dev libgphoto2 pkg-config libusb-dev jpeg-dev cups-dev \
pascal@12902 12 dbus-dev tiff-dev python python-dev dbus-python libtool"
jozee@2765 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@2765 14 WEB_SITE="http://hplipopensource.com"
jozee@2765 15 WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
jozee@4937 16 TAGS="printer driver printing"
samuel_trassare@11762 17 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
jozee@2765 18
jozee@4515 19 # Rules to configure and make the package. --prefix=/usr
jozee@2765 20 compile_rules()
jozee@2765 21 {
jozee@2765 22 cd $src
jozee@3470 23 ./configure \
jozee@2765 24 --prefix=/usr \
jozee@2765 25 --sysconfdir=/etc \
jozee@2765 26 --disable-network-build \
jozee@2765 27 --disable-doc-build \
jozee@2765 28 --disable-gui-build \
jozee@2765 29 --disable-fax-build \
jozee@2765 30 --disable-qt3 \
mojo@13362 31 --enable-pp-build \
jozee@2765 32 $CONFIGURE_ARGS &&
jozee@2765 33 make &&
jozee@2765 34 make DESTDIR=$PWD/_pkg install
jozee@2765 35 }
jozee@2765 36
jozee@2765 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 38 genpkg_rules()
jozee@2765 39 {
jozee@2765 40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
jozee@2765 41
jozee@2765 42 cp -a $_pkg/etc $fs
jozee@2765 43 cp -a $_pkg/usr/bin $fs/usr
jozee@2765 44 cp -a $_pkg/usr/lib/cups $fs/usr/lib
jozee@2765 45 cp -a $_pkg/usr/lib/python* $fs/usr/lib
jozee@2765 46 cp -a $_pkg/usr/lib/sane $fs/usr/lib
jozee@2765 47 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@2765 48 cp -a $_pkg/usr/share/cups \
jozee@2765 49 $_pkg/usr/share/hal \
jozee@2765 50 $_pkg/usr/share/hplip \
jozee@2765 51 $_pkg/usr/share/ppd \
jozee@2765 52 $fs/usr/share
jozee@2765 53
samuel_trassare@11762 54 # compress non-zipped ppd files
samuel_trassare@11762 55 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
jozee@2765 56
samuel_trassare@11762 57 # remove autostart of hp-daemon
samuel_trassare@11762 58 rm -rf $fs/etc/sane.d
jozee@2765 59
samuel_trassare@11762 60 # remove xdg
samuel_trassare@11762 61 rm -rf $fs/etc/xdg
jozee@2765 62 }
jozee@2765 63
pascal@3175 64 post_install()
pascal@3175 65 {
samuel_trassare@11762 66 # remove the desktop file
samuel_trassare@11762 67 rm $fs/usr/share/applications/hplip.desktop
samuel_trassare@11762 68
pascal@3175 69 tazpkg reconfigure udev --root=$1
pascal@3175 70 }