snapcraft.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: tesseract
  2. version: git
  3. summary: open source optical character recognition engine
  4. description: |
  5. Tesseract has unicode (UTF-8) support, and can recognize more than 100
  6. languages "out of the box". It can be trained to recognize other languages.
  7. Tesseract supports various output formats: plain-text, hocr(html), pdf.
  8. If you want to access the files under /media/* or /run/media/* you'll have
  9. to connect the snap to the `core` snap's `removable-media` interface:
  10. $ sudo snap connect tesseract:removable-media
  11. grade: stable # must be 'stable' to release into candidate/stable channels
  12. confinement: strict
  13. apps:
  14. tesseract:
  15. command: >
  16. env
  17. TESSDATA_PREFIX=$SNAP_USER_COMMON
  18. tesseract
  19. plugs:
  20. - home
  21. - removable-media
  22. parts:
  23. tesseract:
  24. source: .
  25. plugin: autotools
  26. build-packages:
  27. - pkg-config
  28. - libpng12-dev
  29. - libjpeg8-dev
  30. - libtiff5-dev
  31. - zlib1g-dev
  32. - libicu-dev
  33. - libpango1.0-dev
  34. - libcairo2-dev
  35. stage-packages:
  36. - libgomp1
  37. after: [leptonica]
  38. leptonica:
  39. source: https://github.com/DanBloomberg/leptonica/archive/1.74.2.tar.gz
  40. plugin: autotools
  41. stage-packages:
  42. - libjbig0
  43. - libjpeg-turbo8
  44. - libopenjp2-7
  45. - libtiff5
Tip!

Press p or to see the previous file or, n or to see the next file