From 165432486bf5db08370479466fa27d033416f15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Wed, 3 Aug 2022 07:35:01 +0800 Subject: [PATCH] snap: add JBIG2 support (#1001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch includes a jbig2enc build into the snap package, allow the user to run OcrMyPDF with the --jbig2-lossy option or other options that trigger JBIG2 encoding. Signed-off-by: ๆž—ๅšไป(Buo-ren Lin) --- snapcraft.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 09b1971a..9ac68ae3 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -41,6 +41,13 @@ parts: stage-packages: - lib32stdc++6 + jbig2enc: + plugin: autotools + source: https://github.com/agl/jbig2enc.git + source-tag: '0.29' + build-packages: + - libleptonica-dev + ocrmypdf: plugin: python source: https://github.com/ocrmypdf/OCRmyPDF.git