mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-12-12 10:57:57 +00:00
paperless-ngx: remove unneeded deps, use static ghostscript (#8397)
This commit is contained in:
@@ -22,7 +22,7 @@ $STD apt install -y \
|
|||||||
optipng \
|
optipng \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libmagic-dev \
|
libmagic-dev \
|
||||||
libzbar0 \
|
libzbar0t64 \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
default-libmysqlclient-dev \
|
default-libmysqlclient-dev \
|
||||||
automake \
|
automake \
|
||||||
@@ -30,17 +30,7 @@ $STD apt install -y \
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
libtiff-dev \
|
libtiff-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libleptonica-dev
|
libleptonica-dev \
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
PG_VERSION="16" setup_postgresql
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
|
||||||
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
|
||||||
fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
|
|
||||||
setup_gs
|
|
||||||
|
|
||||||
msg_info "Installing OCR Dependencies (Patience)"
|
|
||||||
$STD apt install -y \
|
|
||||||
unpaper \
|
unpaper \
|
||||||
icc-profiles-free \
|
icc-profiles-free \
|
||||||
qpdf \
|
qpdf \
|
||||||
@@ -49,18 +39,13 @@ $STD apt install -y \
|
|||||||
pngquant \
|
pngquant \
|
||||||
zlib1g \
|
zlib1g \
|
||||||
tesseract-ocr \
|
tesseract-ocr \
|
||||||
tesseract-ocr-eng
|
tesseract-ocr-eng \
|
||||||
msg_ok "Installed OCR Dependencies"
|
ghostscript
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setup JBIG2"
|
PG_VERSION="16" setup_postgresql
|
||||||
cd /opt/jbig2enc
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
$STD bash ./autogen.sh
|
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
||||||
$STD bash ./configure
|
|
||||||
$STD make
|
|
||||||
$STD make install
|
|
||||||
cd /
|
|
||||||
rm -rf /opt/jbig2enc
|
|
||||||
msg_ok "Installed JBIG2"
|
|
||||||
|
|
||||||
msg_info "Setting up PostgreSQL database"
|
msg_info "Setting up PostgreSQL database"
|
||||||
DB_NAME=paperlessdb
|
DB_NAME=paperlessdb
|
||||||
|
|||||||
Reference in New Issue
Block a user