blob: ef71fbc3ad39e12b81f212d8dc5f1ab646d0aa8d (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
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"
|