summaryrefslogtreecommitdiff
path: root/community/tesseract
diff options
context:
space:
mode:
Diffstat (limited to 'community/tesseract')
-rw-r--r--community/tesseract/PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/community/tesseract/PKGBUILD b/community/tesseract/PKGBUILD
index 98335d8ee..b75561d87 100644
--- a/community/tesseract/PKGBUILD
+++ b/community/tesseract/PKGBUILD
@@ -1,15 +1,15 @@
-# $Id: PKGBUILD 28735 2010-10-05 05:30:06Z spupykin $
+# $Id: PKGBUILD 57295 2011-10-25 11:18:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>
pkgname=tesseract
-pkgver=3.00
-pkgrel=2
+pkgver=3.01
+pkgrel=1
pkgdesc="An OCR programm"
arch=(x86_64 i686 'mips64el')
url="http://code.google.com/p/tesseract-ocr"
license=("APACHE")
-depends=(libpng libtiff libjpeg zlib gcc-libs)
+depends=(libpng libtiff libjpeg zlib gcc-libs leptonica)
source=(http://tesseract-ocr.googlecode.com/files/$pkgname-$pkgver.tar.gz
http://tesseract-ocr.googlecode.com/files/chi_tra.traineddata.gz
http://tesseract-ocr.googlecode.com/files/chi_sim.traineddata.gz
@@ -44,7 +44,7 @@ source=(http://tesseract-ocr.googlecode.com/files/$pkgname-$pkgver.tar.gz
http://tesseract-ocr.googlecode.com/files/ces.traineddata.gz
http://tesseract-ocr.googlecode.com/files/cat.traineddata.gz
http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz)
-md5sums=('cc812a261088ea0c3d2da735be35d09f'
+md5sums=('1ba496e51a42358fb9d3ffe781b2d20a'
'06fce5f5c0221286eab591819406d91e'
'127e0b742b615d81c3b97a555acd8285'
'f4ae2e5668f693cc51c6e3c3f57a8f1d'
@@ -81,10 +81,15 @@ md5sums=('cc812a261088ea0c3d2da735be35d09f'
build() {
cd $srcdir/$pkgname-$pkgver
+ [ -f Makefile.in ] || automake
+ [ -f Makefile ] || ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
mkdir -p $pkgdir/usr/share/tessdata
cp $srcdir/*.traineddata $pkgdir/usr/share/tessdata/
- ./configure --prefix=/usr
- make || return 1
- make DESTDIR=$pkgdir install || return 1
find $pkgdir/usr/share/tessdata -type f -exec chmod 0644 {} \;
}