-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mariux64/update-2.5.2
update to 2.5.2
- Loading branch information
Showing
7 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
✔ sqlite => 3.45.1 @done (24-02-12 13:18) | ||
https://sqlite.org/download.html | ||
✔ Python => 3.11.8 @done (24-02-12 16:03) | ||
https://www.python.org/downloads/release/python-3118/ | ||
✔ node => 20.11.0 @done (24-02-12 16:33) | ||
https://nodejs.org/download/release/latest-v20.x/ | ||
✔ unpaper => git latest @done (24-02-13 12:23) | ||
https://github.com/unpaper/unpaper | ||
☐ ffmpeg ? | ||
https://ffmpeg.org//releases/ffmpeg-6.1.1.tar.gz | ||
✔ zbar => 0.23.93 @done (24-02-13 12:37) | ||
https://github.com/mchehab/zbar/releases/tag/0.23.93 | ||
✔ leptonica => 1.84.1 @done (24-02-13 12:40) | ||
https://github.com/DanBloomberg/leptonica/releases | ||
✔ tesseract => 5.3.4 @done (24-02-13 12:50) | ||
https://github.com/tesseract-ocr/tesseract | ||
✔ nginx => 1.25.3 @done (24-02-14 09:19) | ||
https://nginx.org/download/ | ||
|
||
|
||
☐ conf.build-scripte | ||
sed '/kmous=/d;/XM=/d;$s/$/XM=,/' | ||
|
||
☐ ocrmypdf | ||
( . profile; ocrmypdf --force-ocr ../PDFofDeath/2024-01-29\ 5650025416_B.pdf xxx.pdf ) | ||
|
||
--force-ocr was issued, causing transcoding. | ||
The optional dependency 'jbig2' was not found, so some image optimizations could not be attempted. | ||
|
||
☐ pngquant | ||
The optional dependency 'pngquant' was not found, so some image optimizations could not be attempted. | ||
|
||
|
||
git clone --recursive https://github.com/kornelski/pngquant.git | ||
___________________ | ||
Archive: | ||
✔ ocrmypdf @done (24-02-15 17:01) | ||
( . profile; ocrmypdf --force-ocr ../PDFofDeath/2024-01-29\ 5650025416_B.pdf xxx.pdf ) | ||
--force-ocr was issued, causing transcoding. | ||
The optional dependency 'jbig2' was not found, so some image optimizations could not be attempted. | ||
✔ pngquant @done (24-02-15 13:48) | ||
git clone --recursive https://github.com/kornelski/pngquant.git | ||
The optional dependency 'pngquant' was not found, so some image optimizations could not be attempted. | ||
✔ ffmpeg ? @done (24-02-15 13:47) | ||
https://ffmpeg.org//releases/ffmpeg-6.1.1.tar.gz | ||
✔ nginx => 1.25.3 @done (24-02-14 09:19) | ||
https://nginx.org/download/ | ||
✔ tesseract => 5.3.4 @done (24-02-13 12:50) | ||
https://github.com/tesseract-ocr/tesseract | ||
✔ leptonica => 1.84.1 @done (24-02-13 12:40) | ||
https://github.com/DanBloomberg/leptonica/releases | ||
✔ zbar => 0.23.93 @done (24-02-13 12:37) | ||
https://github.com/mchehab/zbar/releases/tag/0.23.93 | ||
✔ unpaper => git latest @done (24-02-13 12:23) | ||
https://github.com/unpaper/unpaper | ||
✔ node => 20.11.0 @done (24-02-12 16:33) | ||
https://nodejs.org/download/release/latest-v20.x/ | ||
✔ Python => 3.11.8 @done (24-02-12 16:03) | ||
https://www.python.org/downloads/release/python-3118/ | ||
✔ sqlite => 3.45.1 @done (24-02-12 13:18) | ||
https://sqlite.org/download.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
{ | ||
set -x | ||
set -e | ||
|
||
. build.profile | ||
|
||
. ${PREFIX}/${BUILD_python}/profile | ||
. ${PREFIX}/${BUILD_leptonica}/profile | ||
|
||
function B_JBIG2ENC { | ||
|
||
[ -d "$PREFIX" ] || { echo "PREFIX unset or not a directory";exit; } | ||
|
||
PREFIX=${PREFIX}/${BUILD_jbig2enc} | ||
|
||
mkdir -p $PREFIX | ||
|
||
cat >$PREFIX/profile <<-EOF | ||
PATH=$PREFIX/bin:\$PATH | ||
EOF | ||
|
||
|
||
if [ ! -d ${BUILD_jbig2enc} ]; then | ||
if [ ! -e ${BUILD_jbig2enc}.tar ]; then | ||
git clone https://github.com/agl/jbig2enc.git ${BUILD_jbig2enc} | ||
tar cf ${BUILD_jbig2enc}.tar ${BUILD_jbig2enc} | ||
else | ||
tar -xf ${BUILD_jbig2enc}.tar | ||
fi | ||
fi | ||
|
||
pushd ${BUILD_jbig2enc} | ||
|
||
|
||
local _conf=( | ||
--prefix ${PREFIX} | ||
) | ||
|
||
./autogen.sh | ||
|
||
export LDFLAGS=$(PKG_CONFIG_PATH=${PKG_CONFIG_PATH} pkg-config --libs-only-L lept) | ||
export CPPFLAGS="-I${PROJECT}/${BUILD_leptonica}/include" | ||
|
||
./configure "${_conf[@]}" | ||
|
||
make -j $NPROC | ||
make install | ||
|
||
popd | ||
} | ||
|
||
B_JBIG2ENC | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters