# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=ocrmypdf pkgver=8.2.3 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="py-ruffus py-reportlab py-img2pdf py-cffi py-pypdf2 py-pillow unpaper tesseract-ocr ghostscript qpdf python3 py-defusedxml py3-setuptools" 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="df3016fe37809efd53192c682a8aa1faf964d749f07c75b721eafb3cfc8d8a28624a846a9f1d8985ea4b2aaac6817bbe2d25b2950235c3c1f3c647cd6b4454bd ocrmypdf-8.2.3.tar.gz"