# Contributor: Carlo Landmeter # Maintainer: pkgname=ocrmypdf pkgver=5.3.3 pkgrel=0 pkgdesc="Add OCR text layer to scanned PDF files" url="https://github.com/jbarlow83/OCRmyPDF" arch="all" license="MIT" depends="py-ruffus py-reportlab py-img2pdf py-cffi py-pypdf2 py-pillow unpaper tesseract-ocr ghostscript qpdf python3" 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="20989ce830240fc84c75e031c2b67d740ee449c046789e52aff5ef1edee45eae0d9f8671dd26c73bd4b722bfd3ac087b79fe9b289293dcca5266a7ddd8816fd1 ocrmypdf-5.3.3.tar.gz"