# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=ocrmypdf pkgver=9.0.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="9493df30a7b3417b38282d5a00520496cc21791c7d504ef741b6a1581087e7fb5ee29885d0945448db8d3ee9036545f0dbc897d9acd8123e9dd75facdbba6e1b ocrmypdf-9.0.0.tar.gz"