Skip to content

Commit d5f3f20

Browse files
committed
ocrmypdf: move pngquant and unpaper to optdepends
1 parent 683d1a4 commit d5f3f20

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

archlinuxcn/ocrmypdf/PKGBUILD

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ depends=(
1818
'python-pillow'
1919
'tesseract'
2020
'ghostscript'
21-
'unpaper'
22-
'pngquant'
2321
'python-pikepdf'
2422
'python-reportlab'
2523
'python-pdfminer'
@@ -32,7 +30,11 @@ depends=(
3230
'python-uharfbuzz'
3331
)
3432
makedepends=('python-setuptools-scm>=7.0.5' 'python-build' 'python-installer' 'python-wheel' 'python-hatchling' 'python-hatch-vcs')
35-
optdepends=('jbig2enc: Better compression algorithm; results in smaller PDF files')
33+
optdepends=(
34+
'jbig2enc: Better compression algorithm; results in smaller PDF files'
35+
'pngquant: support for higher optimization levels'
36+
'unpaper: support for cleaning up pagaes before OCR'
37+
)
3638
source=("${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
3739
sha256sums=('f4013df8ce5e6a6670e942999de304f2f0d671a8131bc7e6a1779c071041a587')
3840
install="${pkgname}.install"

0 commit comments

Comments
 (0)