aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocrmypdf/APKBUILD
blob: 9a30b1a9adabf2bf0af47a764f3b79b4189a99ec (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org.org>
pkgname=ocrmypdf
pkgver=5.4.1
pkgrel=0
pkgdesc="Add OCR text layer to scanned PDF files"
url="https://github.com/jbarlow83/OCRmyPDF"
arch="noarch"
license="MIT"
options="!check"
depends="py-ruffus py-reportlab py-img2pdf py-cffi py-pypdf2 py-pillow unpaper
	tesseract-ocr ghostscript qpdf python3"
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="a1600caf137d3ec7ac3528753cb317fc78fd886d9675a098aec39c4db04e639fb43f19e9d04eabaef7f5c6f14fa1c18f7ac889cef06a701e75cbee568b3953ef  ocrmypdf-5.4.1.tar.gz"