updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocrfeeder / PKGBUILD
blob3bafd313343434b12a128cb8a9a4fdc16d0da572
1 # Contributor: Sergey Kolesov <cucullus.at.mail.ru>
3 pkgname=ocrfeeder
4 pkgver=0.7.6
5 pkgrel=1
6 pkgdesc="A document layout analysis and optical character recognition system"
7 url="http://live.gnome.org/OCRFeeder"
8 arch=('any')
9 license=('GPL')
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')
18 build() {
19     cd ${srcdir}/${pkgname}-${pkgver}
21     # python2 fix
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 \
26         PYTHON=python2
27     make
30 package() {
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