# Contributor: Carlo Landmeter # Maintainer: pkgname=ocrmypdf pkgver=5.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="fce6c551026734ea0e02bd3ecb2f6f431563e567f209a3cde12577869a1a7eba66713c123a441678ed7c4c5316951b9a213958d9e2217cb24bf9ce1406bb1fd0 ocrmypdf-5.3.tar.gz"