Skip to content

update to 2.5.2 #11

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/build.local
/logs
/paperless-ngx-*
/Python-*
/ffmpeg-*
/jbig2enc-*
/leptonica-*
/logs
/nginx-*
/node-*
/paperless-ngx-*
/pngquant-*
/Python-*
/sqlite-*
/tessconfigs
/tessdata
/tesseract-*
/unpaper-*
/zbar-*
/ffmpeg-*
*.tar
*.tar.gz
*.tar.xz
Expand Down
57 changes: 27 additions & 30 deletions README.todo
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

5 changes: 3 additions & 2 deletions build.profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUILD_TAG=2.5.1
BUILD_TAG=2.5.2

. build.local

Expand All @@ -21,5 +21,6 @@ BUILD_zbar=zbar-0.23.93
BUILD_leptonica=leptonica-1.84.1
BUILD_tesseract=tesseract-5.3.4
BUILD_nginx=nginx-1.25.3
BUILD_jbig2enc=jbig2enc-0.28-17-gea05019

BUILD_paperless=paperless-ngx-2.5.1
BUILD_paperless=paperless-ngx-2.5.2
1 change: 1 addition & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ ln -fs $logfile $LOGS/build.log
[ -d ${BUILD_leptonica} ] || ./leptonica.build.sh
[ -d ${BUILD_tesseract} ] || ./tesseract.build.sh
[ -d ${BUILD_nginx} ] || ./nginx.build.sh
[ -d ${BUILD_jbig2enc} ] || ./jbig2enc.build.sh
./nginx.conf.build.sh
[ -d $PROJECT/${BUILD_paperless} ] || ./paperless-ngx.build.sh

Expand Down
15 changes: 8 additions & 7 deletions cleanall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ set -x
declare -a RMRF

RMRF=(
$BUILD_sqlite
$BUILD_python
$BUILD_node
$BUILD_ffmpeg
$BUILD_unpaper
$BUILD_pngquant
$BUILD_zbar
$BUILD_jbig2enc
$BUILD_leptonica
$BUILD_tesseract
$BUILD_nginx
$BUILD_node
$BUILD_paperless
$BUILD_pngquant
$BUILD_python
$BUILD_sqlite
$BUILD_tesseract
$BUILD_unpaper
$BUILD_zbar
./logs
)

Expand Down
55 changes: 55 additions & 0 deletions jbig2enc.build.sh
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

}
2 changes: 2 additions & 0 deletions paperless-ngx.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ set -e
. ${PREFIX}/${BUILD_unpaper}/profile
. ${PREFIX}/${BUILD_sqlite}/profile
. ${PREFIX}/${BUILD_zbar}/profile
. ${PREFIX}/${BUILD_nginx}/profile
. ${PREFIX}/${BUILD_python}/profile
. ${PREFIX}/${BUILD_node}/profile
. ${PREFIX}/${BUILD_leptonica}/profile
. ${PREFIX}/${BUILD_jbig2enc}/profile
. ${PREFIX}/${BUILD_tesseract}/profile

function B_PAPERLESS {
Expand Down