aboutsummaryrefslogblamecommitdiffstats
path: root/community/ocrmypdf/APKBUILD
blob: 54d9b9c75f5516237d54025470a5b12d7f4dc97f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                                          
                
            
        

                                                 
             
             
                                                   



















                      
                         
                                                                                          

         


                              



                             
           


                                                               
                                                                                                                                                                    
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=ocrmypdf
pkgver=9.8.1
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="e9f4de7908aed6e0fbb82047e8e57a6a3a15fad39c580b723068f092c6cd660556f1b3b9b6cff6ade63ad3c2241fb08296d397f72337a4ba81ea32be3181eb0d  ocrmypdf-9.8.1.tar.gz"