diff --git a/snapcraft.yaml b/snapcraft.yaml index c2476b2..9e2863f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -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 @@ -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 @@ -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 {} \; \ No newline at end of file + find $SNAPCRAFT_PART_INSTALL/bin/ -maxdepth 1 -mindepth 1 -type f -executable -exec head -n 1 {} \;