aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocrmypdf/APKBUILD
blob: 9ab434620d6dd282c5399256ffd54fef6c3fa78e (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=ocrmypdf
pkgver=11.5.0
pkgrel=0
pkgdesc="Add OCR text layer to scanned PDF files"
url="https://github.com/jbarlow83/OCRmyPDF"
arch="noarch"
license="MIT"
options="!check" # failing tests with jbig2enc 0.17
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"
source="https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="aa1aabebea5d71b6631515bc353f99bd859f881bb787daf43bb475bb851f5eec2a456e820ce77624ef5be1626b2f98d1307f19523dc41c09d91d4d625172cd32  ocrmypdf-11.5.0.tar.gz"