tesseract/snap/snapcraft.yaml
林博仁(Buo-ren, Lin) aa48247f1a Assert removable-media interface in the snap
This allows access to the files under `/media/*` and `/run/media/*`, as
the connection is not automatic connect instructions is also added to
the snap's description.

Refer-to: Interfaces - doc - snapcraft.io
<https://forum.snapcraft.io/t/interfaces/6154>
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
2018-09-03 16:45:08 +08:00

44 lines
1.1 KiB
YAML

name: tesseract
version: git
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.
If you want to access the files under /media/* or /run/media/* you'll have
to connect the snap to the `core` snap's `removable-media` interface:
$ sudo snap connect tesseract:removable-media
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
apps:
tesseract:
command: >
env
TESSDATA_PREFIX=$SNAP_USER_COMMON
tesseract
plugs:
- home
- removable-media
parts:
tesseract:
source: .
plugin: autotools
build-packages:
- 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