1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
6 pkgdesc="State-of-the-art document analysis and OCR system"
8 url="http://code.google.com/p/ocropus/"
10 depends=("iulib=$pkgver" 'sqlite3' 'giflib')
11 makedepends=('mercurial' 'scons')
15 msg "Connecting to $pkgname Mercurial server......."
16 if [ -d $pkgname ]; then
18 hg pull -u -r ocropus-$pkgver
21 hg clone https://ocropus.googlecode.com/hg/ $pkgname -r ocropus-$pkgver
23 msg "Mercurial checkout done or server timeout"
24 msg "Starting make..."
26 if [ -e "$srcdir"/$pkgname-build ]; then
27 rm -rf "$srcdir"/$pkgname-build
29 cp -r "$srcdir"/$pkgname "$srcdir"/$pkgname-build
30 cd "$srcdir"/$pkgname-build
33 sed -i 's|/usr/local|/usr|' ocr-commands/ocr-commands.h
35 JOBS=`echo $MAKEFLAGS | sed 's|.*\(-j[1-9][0-9]*\).*|\1|'`
36 scons $JOBS prefix=/usr
40 cd "$srcdir"/$pkgname-build
41 scons destdir="$pkgdir" prefix=/usr install
44 # vim:set ts=2 sw=2 et: