diff options
-rw-r--r-- | pcr/ocrodjvu/PKGBUILD | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/pcr/ocrodjvu/PKGBUILD b/pcr/ocrodjvu/PKGBUILD index 0d647ca49..c5c51941f 100644 --- a/pcr/ocrodjvu/PKGBUILD +++ b/pcr/ocrodjvu/PKGBUILD @@ -1,27 +1,34 @@ -# Maintainer (Arch): Francois Garillot <francois[@]garillot.net> -# Contributor (Arch): Malkov Fyodor aka krox: iksut@yandex.ru +# Maintainer (AUR): Dmitry Kharitonov <darksab0r@gmail.com> +# Contributor (AUR): Francois Garillot <francois[@]garillot.net> +# Contributor (AUR): Malkov Fyodor aka krox: iksut@yandex.ru + +# parabola changes and rationale: +# no changes. + pkgname=ocrodjvu -pkgver=0.7.19 +pkgver=0.10.2 pkgrel=1 pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files." -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'armv7h') url='http://jwilk.net/software/ocrodjvu' license=('GPL2') depends=('python2' 'python2-lxml' 'python2-djvulibre') -optdepends=('cuneiform' 'hocr') -source=(http://pypi.python.org/packages/source/o/$pkgname/$pkgname-$pkgver.tar.gz{,.asc}) -validpgpkeys=('CDB5A1243ACDB63009AD07212D4EB3A6015475F5') +optdepends=('python2-html5lib: HTML parser; required for the ``--html5`` option' + 'python2-pyicu: required for the ``--word-segmentation=uax29`` option' + 'cuneiform: OCR system' + 'tesseract: OCR system' + 'ocrad: OCR system' + 'gocr: OCR system' + 'ocropy: OCR system') +source=(https://github.com/jwilk/ocrodjvu/releases/download/$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('0dcc69ca29178cfb8f77eb85141a04f0a52b28213bd3f9b783fb3968c8850afe') -prepare() { +build() { cd "$srcdir/$pkgname-$pkgver" sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ $(find ./ -name '*.py') -} - -build() { - cd "$srcdir/$pkgname-$pkgver" python2 setup.py build } @@ -30,5 +37,3 @@ package() { cd "$srcdir/$pkgname-$pkgver" python2 setup.py install --root=$pkgdir } -md5sums=('76cdf9addb9d1d0f6b13f06ba308b9a1' - 'SKIP') |