wok annotate hplip/receipt @ rev 24449

updated curl, curl-dev and libcurl (7.72.0 -> 7.81.0)
author Hans-G?nter Theisgen
date Tue Feb 15 11:04:54 2022 +0100 (2022-02-15)
parents 1994c6e018e7
children 2a8e7fee7f14
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@24412 24 # What is the latest version available today?
pascal@24412 25 current_version()
pascal@24412 26 {
pascal@24412 27 wget -O - https://sourceforge.net/projects/hplip/files/hplip/ 2>/dev/null | \
pascal@24412 28 sed '/scope="row/!d;/\/[0-9]/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24412 29 sed '/scope="row/!d;s|.*/hplip/||;s|/.*||;q'
pascal@24412 30 }
pascal@24412 31
pascal@24096 32 # Rules to configure and make the package.
jozee@2765 33 compile_rules()
jozee@2765 34 {
pascal@24097 35 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
Hans-G?nter@23223 36 ./configure \
Hans-G?nter@23223 37 --prefix=/usr \
Hans-G?nter@23223 38 --sysconfdir=/etc \
Hans-G?nter@23223 39 --disable-doc-build \
pascal@24096 40 --disable-network-build \
Hans-G?nter@23223 41 --enable-qt4 \
jozee@2765 42 $CONFIGURE_ARGS &&
jozee@2765 43 make &&
pascal@24098 44 make -j 1 DESTDIR=$DESTDIR install
jozee@2765 45 }
jozee@2765 46
jozee@2765 47 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 48 genpkg_rules()
jozee@2765 49 {
Hans-G?nter@23223 50 mkdir -p $fs/etc
Hans-G?nter@23223 51 mkdir -p $fs/usr/lib
Hans-G?nter@23223 52 mkdir -p $fs/usr/share
jozee@2765 53
Hans-G?nter@23223 54 cp -a $install/etc $fs
pascal@24096 55 cp -a $install/var $fs
Hans-G?nter@23223 56 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23223 57 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@23223 58 cp -a $install/usr/lib/python* $fs/usr/lib
Hans-G?nter@23223 59 cp -a $install/usr/lib/sane $fs/usr/lib
pascal@24098 60 #cp -a $install/usr/lib/hal $fs/usr/lib
Hans-G?nter@23223 61 cp -a $install/usr/lib/*so* $fs/usr/lib
Hans-G?nter@23223 62 cp -a $install/usr/share/cups $fs/usr/share
Hans-G?nter@23223 63 cp -a $install/usr/share/hplip $fs/usr/share
Hans-G?nter@23223 64 cp -a $install/usr/share/ppd $fs/usr/share
pascal@24096 65 cp -a $install/usr/share/app* $fs/usr/share
jozee@2765 66
samuel_trassare@11762 67 # compress non-zipped ppd files
samuel_trassare@11762 68 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
slaxemulator@14624 69
Hans-G?nter@23223 70 # make sure hp-toolbox exists
slaxemulator@14624 71 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
slaxemulator@14624 72
samuel_trassare@11762 73 # remove autostart of hp-daemon
Hans-G?nter@23223 74 rm -rf $fs/etc/sane.d
jozee@2765 75
samuel_trassare@11762 76 # remove xdg
Hans-G?nter@23223 77 rm -rf $fs/etc/xdg
jozee@2765 78 }
jozee@2765 79
pascal@3175 80 post_install()
pascal@3175 81 {
pascal@18730 82 tazpkg reconfigure udev --root="$1"
pascal@3175 83 }