testing/ocrmypdf: new aport

This commit is contained in:
Carlo Landmeter 2017-08-01 17:05:19 +02:00
parent 6dbcaf80a6
commit 8829f2071e

28
testing/ocrmypdf/APKBUILD Normal file
View File

@ -0,0 +1,28 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ocrmypdf
pkgver=5.2
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"
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="67394bfe6d66c63608f52d54ee1377ca474fa9d6fc847ee3c9debfa51a2c68b83902ffa49600f2297c32c80e62bafc18dba7aa7e9ace440cf09dd15d65bb8448 ocrmypdf-5.2.tar.gz"