Skip to content

Commit

Permalink
Update snapcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
digidigital authored Apr 28, 2022
1 parent f4c2e0f commit 2b002ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ parts:
curl --output "${tessdatapath}/best-#1.traineddata" "https://raw.githubusercontent.com/tesseract-ocr/tessdata_best/main/{deu,eng,fra,spa,por,ita,rus,ukr,jpn,jpn_vert,ara,hin,pol}.traineddata"
# debug
# ls -l ${tessdatapath}
ls -l ${tessdatapath}
ocrthypdf:
plugin: python
Expand Down Expand Up @@ -132,7 +132,6 @@ parts:
- CPATH: /usr/include/x86_64-linux-gnu/c++/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:usr/lib/gcc/x86_64-linux-gnu/:/usr/include/c++/9/:/usr/include/c++/
- PYTHONPATH: ''


override-build: |
# Work around a bug in snapcraft python plugin / gnome 3.38 extension
# https://forum.snapcraft.io/t/build-a-snap-with-any-version-of-python-i-want/10420/8
Expand All @@ -152,7 +151,7 @@ parts:
find $SNAPCRAFT_PART_INSTALL/bin/ -maxdepth 1 -mindepth 1 -type f -executable -exec \
sed -i \
"s|^#!/root/parts/ocrthypdf/install/bin/python3.9$|#!/usr/bin/env python3|" {} \;
"s|^#!${SNAPCRAFT_PART_INSTALL}/bin/python3.9$|#!/usr/bin/env python3|" {} \;
# debug
# find $SNAPCRAFT_PART_INSTALL/bin/ -maxdepth 1 -mindepth 1 -type f -executable -exec head -n 1 {} \;
find $SNAPCRAFT_PART_INSTALL/bin/ -maxdepth 1 -mindepth 1 -type f -executable -exec head -n 1 {} \;

0 comments on commit 2b002ce

Please sign in to comment.