1 # Contributor: Sergey Kolesov <cucullus.at.mail.ru>
6 pkgdesc="A document layout analysis and optical character recognition system"
7 url="http://live.gnome.org/OCRFeeder"
10 depends=('pygoocanvas>=0.12' 'ghostscript>=8.63' 'unpaper>=0.3' 'python-imaging' 'python2-libgnome' 'python2-pyenchant' 'python2-gtkspell' 'desktop-file-utils' 'python-reportlab')
11 makedepends=('gnome-doc-utils')
12 optdepends=('cuneiform: OCR engine' 'tesseract: OCR engine' 'ocrad: OCR engine' 'gocr: OCR engine')
13 source=("http://ftp.gnome.org/pub/GNOME/sources/ocrfeeder/0.7/${pkgname}-${pkgver}.tar.bz2")
14 install=$pkgname.install
16 md5sums=('a9a96a5b72ed5765ad56653e5a6d1e01')
19 cd ${srcdir}/${pkgname}-${pkgver}
22 sed -i 's@^#!.*python$@#!/usr/bin/python2@' bin/ocrfeeder*.in src/ocrfeeder/odf/*.py
24 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
25 --disable-scrollkeeper \
31 cd ${srcdir}/${pkgname}-${pkgver}
33 make DESTDIR=$pkgdir install
34 mkdir -p $pkgdir/usr/share/pixmaps
35 ln -s ../${pkgname}/icons/${pkgname}.svg ${pkgdir}/usr/share/pixmaps/${pkgname}.svg