blob: a8614b0a62fb61f1be1d3103abfa8c6924b49364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=ocrmypdf
pkgver=8.2.3
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="py-ruffus py-reportlab py-img2pdf py-cffi py-pypdf2 py-pillow unpaper
tesseract-ocr ghostscript qpdf python3 py-defusedxml
py3-setuptools"
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="df3016fe37809efd53192c682a8aa1faf964d749f07c75b721eafb3cfc8d8a28624a846a9f1d8985ea4b2aaac6817bbe2d25b2950235c3c1f3c647cd6b4454bd ocrmypdf-8.2.3.tar.gz"
|