mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-30 23:49:05 +08:00
91afb5540f
1.74.2 is no longer available from the leptonica website. But anyway, it seems safer going forward to download it from github. It's https, and it won't disappear as easily. Also, this is the same source used by travis, so there's less chance of shipping something untested.
35 lines
926 B
YAML
35 lines
926 B
YAML
name: tesseract
|
|
version: master
|
|
summary: open source optical character recognition engine
|
|
description: |
|
|
Tesseract has unicode (UTF-8) support, and can recognize more than 100
|
|
languages "out of the box". It can be trained to recognize other languages.
|
|
Tesseract supports various output formats: plain-text, hocr(html), pdf.
|
|
|
|
grade: devel # must be 'stable' to release into candidate/stable channels
|
|
confinement: strict
|
|
|
|
apps:
|
|
tesseract:
|
|
command: env TESSDATA_PREFIX=$SNAP_USER_COMMON tesseract
|
|
plugs: [home]
|
|
|
|
parts:
|
|
tesseract:
|
|
source: .
|
|
plugin: autotools
|
|
build-packages:
|
|
- autoconf-archive
|
|
- pkg-config
|
|
- libpng12-dev
|
|
- libjpeg8-dev
|
|
- libtiff5-dev
|
|
- zlib1g-dev
|
|
- libicu-dev
|
|
- libpango1.0-dev
|
|
- libcairo2-dev
|
|
after: [leptonica]
|
|
leptonica:
|
|
source: https://github.com/DanBloomberg/leptonica/archive/1.74.2.tar.gz
|
|
plugin: autotools
|