talimat 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Tanım: HP DeskJet, OfficeJet, Photosmart, Business Inkjet ve bazı LaserJet serileri için sürücü
  2. # URL: http://hplipopensource.com/hplip-web/index.html
  3. # Paketçi: milisarge
  4. # Gerekler: v4l-utils libgphoto2 python3-sip python3-qt5 avahi python3 wget ghostscript foomatic-db foomatic-db-engine usbutils sane xsane cups cups-filters rpcbind libusb libusb-compat net-snmp dbus-python python3-gobject python-notify python3-pillow python3-reportlab
  5. # Grup: sürücü
  6. isim=hplip
  7. surum=3.18.7
  8. devir=1
  9. kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz
  10. disable_upgrade.patch
  11. 0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
  12. 0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch)
  13. derle() {
  14. cd $isim-$surum
  15. patch -Np0 -i ${SRC}/disable_upgrade.patch
  16. # add missing 'include <cups/ppd.h>' at various places
  17. patch -Np1 -i ${SRC}/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
  18. # fix some handling unicode file names FS#58412
  19. patch -Np1 -i ${SRC}/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
  20. export PYTHON=/usr/bin/python3
  21. export AUTOMAKE='automake --foreign'
  22. autoreconf --force --install
  23. ./configure --prefix=/usr \
  24. --enable-qt5 \
  25. --disable-qt4 \
  26. --disable-policykit \
  27. --enable-hpcups-install \
  28. --enable-cups-drv-install \
  29. --enable-pp-build #--help
  30. make
  31. make -j1 rulesdir=/usr/lib/udev/rules.d DESTDIR="$PKG/" install
  32. # remove config provided by sane and autostart of hp-daemon
  33. rm -rf "$PKG"/etc/{sane.d,xdg}
  34. install -dm755 ${PKG}/etc/sane.d/dll.d
  35. echo hpaio > ${PKG}/etc/sane.d/dll.d/hpaio
  36. # remove HAL .fdi file because HAL is no longer used
  37. rm -vrf "$PKG"/usr/share/hal
  38. #systemd sil
  39. rm -vrf "$PKG"/usr/lib/systemd
  40. # remove rc script
  41. rm -vrf "$PKG"/etc/init.d
  42. #doc sil
  43. rm -vrf "$PKG"/usr/share/doc
  44. # add mixed license file
  45. install -Dt "${PKG}"/usr/share/licenses/${isim} -m644 COPYING
  46. cd $PKG/usr/share/hplip
  47. grep -rli python | xargs sed -i "s/\/usr\/bin\/env python/\/usr\/bin\/env python3/g"
  48. }