# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=ocrmypdf pkgver=9.4.0 pkgrel=0 pkgdesc="Add OCR text layer to scanned PDF files" url="https://github.com/jbarlow83/OCRmyPDF" arch="noarch !s390x" license="MIT" options="!check" depends=" python3 py3-setuptools py3-reportlab py3-chardet py3-cffi py3-img2pdf py3-pdfminer py3-pikepdf py3-pillow py3-tqdm tesseract-ocr ghostscript unpaper qpdf jbig2enc pngquant leptonica " makedepends="python3-dev" source="https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-$pkgver.tar.gz" build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="b7b0bdf6c5db67b06a12b91f1195305e92876dea3f771143f31976e797c14acae459c5c90e3bdf40a985e32300b067670aeed8086a10a617dd224d3652cfcdd0 ocrmypdf-9.4.0.tar.gz"