Skip to content

Commit b468209

Browse files
authored
paperless-ngx: remove unneeded deps, use static ghostscript (#8397)
1 parent d0cee74 commit b468209

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

install/paperless-ngx-install.sh

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,15 @@ $STD apt install -y \
2222
optipng \
2323
libpq-dev \
2424
libmagic-dev \
25-
libzbar0 \
25+
libzbar0t64 \
2626
poppler-utils \
2727
default-libmysqlclient-dev \
2828
automake \
2929
libtool \
3030
pkg-config \
3131
libtiff-dev \
3232
libpng-dev \
33-
libleptonica-dev
34-
msg_ok "Installed Dependencies"
35-
36-
PG_VERSION="16" setup_postgresql
37-
PYTHON_VERSION="3.13" setup_uv
38-
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
39-
fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
40-
setup_gs
41-
42-
msg_info "Installing OCR Dependencies (Patience)"
43-
$STD apt install -y \
33+
libleptonica-dev \
4434
unpaper \
4535
icc-profiles-free \
4636
qpdf \
@@ -49,18 +39,13 @@ $STD apt install -y \
4939
pngquant \
5040
zlib1g \
5141
tesseract-ocr \
52-
tesseract-ocr-eng
53-
msg_ok "Installed OCR Dependencies"
54-
55-
msg_info "Setup JBIG2"
56-
cd /opt/jbig2enc
57-
$STD bash ./autogen.sh
58-
$STD bash ./configure
59-
$STD make
60-
$STD make install
61-
cd /
62-
rm -rf /opt/jbig2enc
63-
msg_ok "Installed JBIG2"
42+
tesseract-ocr-eng \
43+
ghostscript
44+
msg_ok "Installed Dependencies"
45+
46+
PG_VERSION="16" setup_postgresql
47+
PYTHON_VERSION="3.13" setup_uv
48+
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
6449

6550
msg_info "Setting up PostgreSQL database"
6651
DB_NAME=paperlessdb

0 commit comments

Comments
 (0)