talimat 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Tanım: Samsung yazıcılar ve tarayıcılar için Birleşik Linux Sürücüsü
  2. # URL: http://www.samsung.com
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: libxml2 libusb-compat cups sane ghostscript
  5. # Grup: sürücü
  6. isim=samsung-printer
  7. surum=1.00.39
  8. devir=1
  9. kaynak=(http://downloadcenter.samsung.com/content/DR/201704/20170407143829533/uld_V${surum}_01.17.tar.gz
  10. xerox_mfp-smfp.conf)
  11. derle() {
  12. mkdir -p "$PKG"/usr/share/licenses/samsung-unified-driver
  13. cp "$SRC"/uld/noarch/license/eula.txt "$PKG"/usr/share/licenses/samsung-unified-driver/LICENSE
  14. cp "$SRC"/uld/noarch/license/eula-fr.txt "$PKG"/usr/share/licenses/samsung-unified-driver
  15. mkdir -p "$PKG"/usr/lib
  16. cp "$SRC"/uld/x86_64/libscmssc.so "$PKG"/usr/lib
  17. mkdir -p "$PKG"/usr/lib/cups/backend
  18. cp "$SRC"/uld/x86_64/smfpnetdiscovery "$PKG"/usr/lib/cups/backend
  19. mkdir -p "$PKG"/usr/lib/cups/filter
  20. cp "$SRC"/uld/x86_64/pstosecps "$PKG"/usr/lib/cups/filter
  21. cp "$SRC"/uld/x86_64/rastertospl "$PKG"/usr/lib/cups/filter
  22. mkdir -p "$PKG"/usr/share/ppd/suld
  23. for ppd in "$SRC"/uld/noarch/share/ppd/*.ppd; do
  24. gzip < "$ppd" > "$PKG"/usr/share/ppd/suld/"${ppd##*/}".gz
  25. done
  26. mkdir -p "$PKG"/usr/share/ppd/suld/cms
  27. for cts in "$SRC"/uld/noarch/share/ppd/cms/*.cts; do
  28. cp "$cts" "$PKG"/usr/share/ppd/suld/cms
  29. done
  30. mkdir -p "$PKG"/usr/share
  31. cp -r "$SRC"/uld/noarch/share/locale "$PKG"/usr/share
  32. rm -f "$PKG"/usr/share/locale/fr/LC_MESSAGES/install.mo
  33. mkdir -p "$PKG"/etc/sane.d
  34. cp "$SRC"/uld/noarch/etc/smfp.conf "$PKG"/etc/sane.d
  35. cp "$SRC"/xerox_mfp-smfp.conf "$PKG"/etc/sane.d
  36. mkdir -p "$PKG"/etc/sane.d/dll.d
  37. echo smfp > "$PKG"/etc/sane.d/dll.d/smfp-scanner
  38. echo xerox_mfp-smfp > "$PKG"/etc/sane.d/dll.d/smfp-scanner-fix
  39. mkdir -p "$PKG"/usr/lib/sane
  40. cp "$SRC"/uld/x86_64/libsane-smfp.so.1.0.1 "$PKG"/usr/lib/sane
  41. ln -s libsane-smfp.so.1.0.1 "$PKG"/usr/lib/sane/libsane-smfp.so.1
  42. ln -s libsane-smfp.so.1 "$PKG"/usr/lib/sane/libsane-smfp.so
  43. mkdir -p "$PKG"/usr/lib/udev/rules.d
  44. (
  45. OEM_FILE="$SRC"/uld/noarch/oem.conf
  46. INSTALL_LOG_FILE=/dev/null
  47. source "$SRC"/uld/noarch/scripting_utils
  48. source "$SRC"/uld/noarch/package_utils
  49. source "$SRC"/uld/noarch/scanner-script.pkg
  50. fill_full_template "$SRC"/uld/noarch/etc/smfp.rules.in "$PKG"/usr/lib/udev/rules.d/60_smfp_samsung.rules
  51. mkdir -p "$PKG"/opt/samsung/scanner/share
  52. cp "$OEM_FILE" "$PKG"/opt/samsung/scanner/share
  53. )
  54. }