aboutsummaryrefslogblamecommitdiffstats
path: root/community/ocrmypdf/APKBUILD
blob: b77893b51ba39033996f121e027c27a6d03157e9 (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=5.6.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="d1ae81c76e0ebc7258116bc351bb20fbcb57be3b4af36beb06fb6b3edb5d8243d764018e56a490cf401d4d642a5358c97da8fa7d09c286f73c2a2039e4f29989  ocrmypdf-5.6.1.tar.gz"