fix: Fix snap package building

This patch fixes the outdated snap package recipe to make the snap
buildable with the current Snapcraft release(7.3.1).

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
This commit is contained in:
林博仁(Buo-ren Lin) 2023-03-31 04:42:33 +08:00 committed by Stefan Weil
parent 71af454299
commit 7b05f9478e

View File

@ -13,13 +13,13 @@ description: |
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict confinement: strict
base: core22
apps: apps:
tesseract: tesseract:
command: > command: usr/local/bin/tesseract
env environment:
TESSDATA_PREFIX=$SNAP_USER_COMMON TESSDATA_PREFIX: $SNAP_USER_COMMON
tesseract
plugs: plugs:
- home - home
- removable-media - removable-media
@ -30,9 +30,9 @@ parts:
plugin: autotools plugin: autotools
build-packages: build-packages:
- pkg-config - pkg-config
- libpng12-dev - libpng-dev
- libjpeg8-dev - libjpeg-dev
- libtiff5-dev - libtiff-dev
- zlib1g-dev - zlib1g-dev
- libicu-dev - libicu-dev
- libpango1.0-dev - libpango1.0-dev