wok annotate hplip/receipt @ rev 25805

created recipe for xfce4-weather-plugin
author Hans-G?nter Theisgen
date Wed Nov 13 15:24:31 2024 +0100 (3 weeks ago)
parents 73f36875e5a7
children
rev   line source
jozee@2765 1 # SliTaz package receipt.
jozee@2765 2
jozee@2765 3 PACKAGE="hplip"
Hans-G?nter@24648 4 VERSION="3.22.2"
jozee@2765 5 CATEGORY="system-tools"
Hans-G?nter@23223 6 TAGS="printer driver printing"
Hans-G?nter@24648 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"
pascal@25540 10 WEB_SITE="https://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@25267 15 DEPENDS="cups dbus-python gcc83-lib-base ghostscript jpeg libexif
Hans-G?nter@24648 16 libgphoto2 libltdl libusb libv4l net-snmp pygobject
Hans-G?nter@24648 17 PyQt-x11-gpl python sane-backends tiff"
Hans-G?nter@24648 18 BUILD_DEPENDS="cups-dev dbus-dev dbus-python dbus-python-dev gawk
Hans-G?nter@24648 19 ghostscript-dev jpeg-dev libexif-dev libgphoto2-dev libtool
Hans-G?nter@24648 20 libusb-dev net-snmp-dev openssl-dev pkg-config python
Hans-G?nter@24648 21 python-dev Qt4-dev sane-backends-dev tiff-dev"
Hans-G?nter@24648 22
pascal@15002 23 BUGS="Unable to delete hplip.desktop from $fs. Using hack in post_install."
pascal@15002 24
pascal@24412 25 # What is the latest version available today?
pascal@24412 26 current_version()
pascal@24412 27 {
pascal@24412 28 wget -O - https://sourceforge.net/projects/hplip/files/hplip/ 2>/dev/null | \
pascal@25606 29 sed '/scope="row/!d;/\/[0-9]/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24412 30 sed '/scope="row/!d;s|.*/hplip/||;s|/.*||;q'
pascal@24412 31 }
pascal@24412 32
pascal@24096 33 # Rules to configure and make the package.
jozee@2765 34 compile_rules()
jozee@2765 35 {
pascal@24097 36 grep -lr 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
Hans-G?nter@24648 37
Hans-G?nter@23223 38 ./configure \
Hans-G?nter@23223 39 --prefix=/usr \
Hans-G?nter@23223 40 --sysconfdir=/etc \
Hans-G?nter@23223 41 --disable-doc-build \
Hans-G?nter@24648 42 --disable-network-build \
Hans-G?nter@23223 43 --enable-qt4 \
jozee@2765 44 $CONFIGURE_ARGS &&
jozee@2765 45 make &&
pascal@24098 46 make -j 1 DESTDIR=$DESTDIR install
jozee@2765 47 }
jozee@2765 48
jozee@2765 49 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2765 50 genpkg_rules()
jozee@2765 51 {
Hans-G?nter@23223 52 mkdir -p $fs/etc
Hans-G?nter@23223 53 mkdir -p $fs/usr/lib
Hans-G?nter@23223 54 mkdir -p $fs/usr/share
Hans-G?nter@24648 55
Hans-G?nter@23223 56 cp -a $install/etc $fs
pascal@24096 57 cp -a $install/var $fs
Hans-G?nter@23223 58 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23223 59 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@23223 60 cp -a $install/usr/lib/python* $fs/usr/lib
Hans-G?nter@23223 61 cp -a $install/usr/lib/sane $fs/usr/lib
pascal@24098 62 #cp -a $install/usr/lib/hal $fs/usr/lib
Hans-G?nter@23223 63 cp -a $install/usr/lib/*so* $fs/usr/lib
Hans-G?nter@23223 64 cp -a $install/usr/share/cups $fs/usr/share
Hans-G?nter@23223 65 cp -a $install/usr/share/hplip $fs/usr/share
Hans-G?nter@23223 66 cp -a $install/usr/share/ppd $fs/usr/share
pascal@24096 67 cp -a $install/usr/share/app* $fs/usr/share
jozee@2765 68
samuel_trassare@11762 69 # compress non-zipped ppd files
samuel_trassare@11762 70 find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
slaxemulator@14624 71
Hans-G?nter@24648 72 # make sure hp-toolbox exist
slaxemulator@14624 73 ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox
slaxemulator@14624 74
samuel_trassare@11762 75 # remove autostart of hp-daemon
Hans-G?nter@23223 76 rm -rf $fs/etc/sane.d
jozee@2765 77
samuel_trassare@11762 78 # remove xdg
Hans-G?nter@23223 79 rm -rf $fs/etc/xdg
jozee@2765 80 }
jozee@2765 81
pascal@3175 82 post_install()
pascal@3175 83 {
pascal@18730 84 tazpkg reconfigure udev --root="$1"
pascal@3175 85 }