-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the packaging metadata to build the tesseract snap
- Loading branch information
Leo Arias
committed
Feb 3, 2017
1 parent
bd45b3a
commit cfd8b4a
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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: http://www.leptonica.org/source/leptonica-1.74.1.tar.gz | ||
plugin: autotools |