wok annotate hplip/receipt @ rev 24124

updated transfig (3.2.5d -> 3.2.8b)
author Hans-G?nter Theisgen
date Wed Oct 06 10:26:09 2021 +0100 (2021-10-06)
parents ab0d30498b02
children ba7cbdb5749c
rev   line source
jozee@2765 1 # SliTaz package receipt.
jozee@2765 2
jozee@2765 3 PACKAGE="hplip"
pascal@24096 4 VERSION="3.21.8"
jozee@2765 5 CATEGORY="system-tools"
Hans-G?nter@23223 6 TAGS="printer driver printing"
jozee@2765 7 SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
jozee@2765 8 MAINTAINER="jozee@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@23223 10 WEB_SITE="http://hplipopensource.com"
Hans-G?nter@23223 11
pascal@15002 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15002 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@23223 14
pascal@15002 15 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
pascal@15002 16
pascal@5002 17 DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
Hans-G?nter@23223 18 libgphoto2 libexif gcc-lib-base libltdl libv4l net-snmp PyQt-x11-gpl pygobject"
pascal@24096 19 BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev openssl-dev gawk \
Hans-G?nter@23223 20 sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
Hans-G?nter@23223 21 jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev \
Hans-G?nter@23223 22 libtool"
jozee@2765 23
pascal@24096 24 # Rules to configure and make the package.
jozee@2765 25 compile_rules()
jozee@2765 26 {
pascal@24097 27 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
Hans-G?nter@23223 28 ./configure \
Hans-G?nter@23223 29 --prefix=/usr \
Hans-G?nter@23223 30 --sysconfdir=/etc \
Hans-G?nter@23223 31 --disable-doc-build \
pascal@24096 32 --disable-network-build \
Hans-G?nter@23223 33 --enable-qt4 \
jozee@2765 34 $CONFIGURE_ARGS &&
jozee@2765 35 make &&
pascal@24098 36 make -j 1 DESTDIR=$DESTDIR install
jozee@2765 37 }
jozee@2765 38
jozee@2765 39 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 40 genpkg_rules()
jozee@2765 41 {
Hans-G?nter@23223 42 mkdir -p $fs/etc
Hans-G?nter@23223 43 mkdir -p $fs/usr/lib
Hans-G?nter@23223 44 mkdir -p $fs/usr/share
jozee@2765 45
Hans-G?nter@23223 46 cp -a $install/etc $fs
pascal@24096 47 cp -a $install/var $fs
Hans-G?nter@23223 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23223 49 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@23223 50 cp -a $install/usr/lib/python* $fs/usr/lib
Hans-G?nter@23223 51 cp -a $install/usr/lib/sane $fs/usr/lib
pascal@24098 52 #cp -a $install/usr/lib/hal $fs/usr/lib
Hans-G?nter@23223 53 cp -a $install/usr/lib/*so* $fs/usr/lib
Hans-G?nter@23223 54 cp -a $install/usr/share/cups $fs/usr/share
Hans-G?nter@23223 55 cp -a $install/usr/share/hplip $fs/usr/share
Hans-G?nter@23223 56 cp -a $install/usr/share/ppd $fs/usr/share
pascal@24096 57 cp -a $install/usr/share/app* $fs/usr/share
jozee@2765 58
samuel_trassare@11762 59 # compress non-zipped ppd files
samuel_trassare@11762 60 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
slaxemulator@14624 61
Hans-G?nter@23223 62 # make sure hp-toolbox exists
slaxemulator@14624 63 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
slaxemulator@14624 64
samuel_trassare@11762 65 # remove autostart of hp-daemon
Hans-G?nter@23223 66 rm -rf $fs/etc/sane.d
jozee@2765 67
samuel_trassare@11762 68 # remove xdg
Hans-G?nter@23223 69 rm -rf $fs/etc/xdg
jozee@2765 70 }
jozee@2765 71
pascal@3175 72 post_install()
pascal@3175 73 {
pascal@18730 74 tazpkg reconfigure udev --root="$1"
pascal@3175 75 }