summaryrefslogtreecommitdiff
path: root/community/tesseract/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/tesseract/PKGBUILD')
-rw-r--r--community/tesseract/PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/community/tesseract/PKGBUILD b/community/tesseract/PKGBUILD
index 8a7c565f1..eb69418ac 100644
--- a/community/tesseract/PKGBUILD
+++ b/community/tesseract/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 59081 2011-11-21 09:28:09Z spupykin $
+# $Id: PKGBUILD 73535 2012-07-09 09:16:10Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>
@@ -9,7 +9,7 @@ kor ell rus por bul lav lit pol dan-frak deu dan ces cat eng chi_tra chi_sim)
pkgbase=tesseract
pkgname=(tesseract $(for l in ${_langs[@]}; do echo tesseract-data-${l}; done))
pkgver=3.01
-pkgrel=1
+pkgrel=2
pkgdesc="An OCR programm"
arch=(x86_64 i686 'mips64el')
url="http://code.google.com/p/tesseract-ocr"
@@ -60,7 +60,8 @@ md5sums=('1ba496e51a42358fb9d3ffe781b2d20a'
build() {
cd $srcdir/$pkgname-$pkgver
- [ -f Makefile.in ] || automake
+ sed -i '1,1i#include <unistd.h>' viewer/svutil.cpp
+ [ -f Makefile.in ] || { aclocal && automake; }
[ -f Makefile ] || ./configure --prefix=/usr
make
}