# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=ocrmypdf pkgver=9.1.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" install="" subpackages="" source="https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-$pkgver.tar.gz" builddir="$srcdir/ocrmypdf-$pkgver" build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="b1d7257f4e5690f712289917a0c127b4732b8f86821fedc52f1fe7226c468ed0d5797498803d02f4048682291dfb272cad885b237850001acbd2803b9a71591e ocrmypdf-9.1.0.tar.gz"