diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-30 12:52:18 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-30 12:52:18 -0300 |
commit | ab2790905efe629d588fd7c1416db1ee7a9fdd1d (patch) | |
tree | 4a733781834d8fc60a4e320932d0cc25e5ca1b0a /pcr/ocrodjvu | |
parent | 293cf96700b000c3c8d19322563c109a0963d1c2 (diff) |
ocrodjvu
Diffstat (limited to 'pcr/ocrodjvu')
-rw-r--r-- | pcr/ocrodjvu/PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/ocrodjvu/PKGBUILD b/pcr/ocrodjvu/PKGBUILD new file mode 100644 index 000000000..296b9d433 --- /dev/null +++ b/pcr/ocrodjvu/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Francois Garillot <francois[@]garillot.net> +# Contributor: Malkov Fyodor aka krox: iksut@yandex.ru +pkgname=ocrodjvu +pkgver=0.7.13 +pkgrel=1 +pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files." +arch=('i686' 'x86_64') +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) +md5sums=('9b96520497e12ebcf68e61a056aad5a5') + +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') + + python2 setup.py build + python2 setup.py install --root=$pkgdir +} |