paperless-venv - Add steps to compile jbig2enc

This commit is contained in:
2023-01-04 15:13:36 +01:00
parent 76bde5c63d
commit 9e2a9ec594

View File

@@ -204,6 +204,32 @@ step_19() {
step service restart
}
step_21_info() { echo 'Setup dependecies to compile jbig2'; }
step_21_alias() { echo 'setup_jbig2'; }
step_21() {
exe apt install libtool libleptonica-dev ${sq_aptOpt}
}
sq_jbig2build="/tmp/jbig2build"
step_22_info() { echo 'Compile jbig2'; }
step_22_alias() { echo 'make_jbig2'; }
step_22() {
exe mkdir -p "${sq_jbig2build}"
exe cd "${sq_jbig2build}"
exe git clone https://github.com/agl/jbig2enc
exe cd jbig2enc
exe ./autogen.sh
exep ./configure "&&" make
}
step_23_info() { echo 'Install compiled jbig2'; }
step_23_alias() { echo 'install_jbig2'; }
step_23() {
[[ ! -d "${sq_jbig2build}" ]] && die "Compile jbi2 first"
exe cd "${sq_jbig2build}/jbig2enc"
exe make install
}
step_30_info() {
echo "Retag existing documents"
echoinfo "OPTIONS"