# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=ocrmypdf pkgver=5.4.3 pkgrel=0 pkgdesc="Add OCR text layer to scanned PDF files" url="https://github.com/jbarlow83/OCRmyPDF" arch="noarch" license="MIT" options="!check" 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="e96fec0f90c077b82c3b1d3728d8286be8ec5a3877bcf496b65ae39d6cf4b6101aa0c37830d187cbe08d1558d0d52b0a7a915491d8da69751882b4b81a5d3aff ocrmypdf-5.4.3.tar.gz"