talimat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Tanım: HPs hplip yazıcı ikili sürücü
  2. # URL: http://hplipopensource.com/node/309
  3. # Paketçi: milisarge
  4. # Gerekler: hplip
  5. # Grup: sürücü
  6. isim=hplip-plugin
  7. surum=3.18.6
  8. devir=1
  9. kaynak=(http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$surum-plugin.run)
  10. derle() {
  11. sh "hplip-$surum-plugin.run" --target "$SRC/hplip-$surum-plugin" --noexec
  12. cd "$SRC/hplip-$surum-plugin"
  13. _arch='x86_64'
  14. install -d "$PKG/usr/share/hplip/data/firmware"
  15. install -d "$PKG/usr/share/hplip/fax/plugins"
  16. install -d "$PKG/usr/share/hplip/prnt/plugins"
  17. install -d "$PKG/usr/share/hplip/scan/plugins"
  18. install -d "$PKG/usr/share/licenses/hplip-plugin"
  19. install -d "$PKG/var/lib/hp"
  20. install -m644 plugin.spec "$PKG/usr/share/hplip/"
  21. install -m644 hp_laserjet_*.fw.gz "$PKG/usr/share/hplip/data/firmware/"
  22. install -m755 fax_marvell-"$_arch".so "$PKG/usr/share/hplip/fax/plugins/"
  23. install -m755 hbpl1-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/"
  24. install -m755 lj-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/"
  25. install -m755 bb_*-"$_arch".so "$PKG/usr/share/hplip/scan/plugins/"
  26. install -m644 license.txt "$PKG/usr/share/licenses/hplip-plugin/"
  27. # Create hplip.state used by hplip-tools
  28. cat << EOF > hplip.state
  29. [plugin]
  30. installed = 1
  31. eula = 1
  32. version = $surum
  33. EOF
  34. install -m644 hplip.state "$PKG/var/lib/hp"
  35. # Create symlinks
  36. find "$PKG/usr/share/hplip" -type f -name "*.so" | while read f; do
  37. lib_dir="${f%/*}"
  38. lib_isim="${f##*/}"
  39. ln -vsf "$lib_isim" "$lib_dir/${lib_isim%%-*}.so"
  40. done
  41. }