summaryrefslogtreecommitdiff
path: root/pcr/ocrodjvu/PKGBUILD
blob: a5b8767ede307e6fa2c9c85de0a55ce0b7148524 (plain)
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
30
31
32
33
34
# Maintainer (Arch): Francois Garillot <francois[@]garillot.net>
# Contributor (Arch): Malkov Fyodor aka krox: iksut@yandex.ru
pkgname=ocrodjvu
pkgver=0.7.19
pkgrel=1
pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files."
arch=('i686' 'x86_64' 'mips64el')
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')

prepare() {
    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
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python2 setup.py install --root=$pkgdir
}
md5sums=('76cdf9addb9d1d0f6b13f06ba308b9a1'
         'SKIP')