From cfd8b4a3f3188ada4ff32655ae468846bfdb9ac2 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Fri, 3 Feb 2017 06:37:39 +0000 Subject: [PATCH] Add the packaging metadata to build the tesseract snap --- snap/snapcraft.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..4dd68d4a --- /dev/null +++ b/snap/snapcraft.yaml @@ -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