30 lines
1.3 KiB
Bash
30 lines
1.3 KiB
Bash
# Template file for 'python3-ocrmypdf'
|
|
pkgname=python3-ocrmypdf
|
|
version=17.8.1
|
|
revision=1
|
|
build_style=python3-pep517
|
|
make_check_args="
|
|
--deselect=tests/test_rotation.py::test_rotated_skew_timeout[pypdfium]
|
|
--deselect=tests/test_rotation.py::test_rotate_deskew_ocr_timeout[pypdfium]
|
|
--deselect=tests/test_rotation.py::test_rasterize_rotates[pypdfium]
|
|
"
|
|
hostmakedepends="hatchling hatch-vcs"
|
|
depends="python3-deprecation img2pdf python3-packaging python3-pdfminer.six
|
|
python3-pikepdf python3-Pillow python3-pluggy python3-reportlab python3-rich
|
|
python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf
|
|
python3-fpdf2 python3-pydantic python3-uharfbuzz"
|
|
checkdepends="$depends python3-pytest python3-pytest-xdist python3-pytest-cov
|
|
python3-coverage python3-hypothesis tesseract-ocr-eng"
|
|
short_desc="Add OCR text layer to scanned PDF files"
|
|
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://github.com/ocrmypdf/OCRmyPDF"
|
|
changelog="https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/docs/releasenotes/version${version%%.*}.md"
|
|
distfiles="${PYPI_SITE}/o/ocrmypdf/ocrmypdf-${version}.tar.gz"
|
|
checksum=6f72e4da5fd7805e5d677c0fc55ad380c70e1c7ad33dd9ce2402575194803e08
|
|
|
|
post_install() {
|
|
vcompletion misc/completion/ocrmypdf.bash bash ocrmypdf
|
|
vcompletion misc/completion/ocrmypdf.fish fish ocrmypdf
|
|
}
|