From 84fe155e2233db86fcc13134d8802ba1dab0ae83 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Oct 2011 23:15:38 +0000 Subject: Wed Oct 26 23:15:38 UTC 2011 --- community/tesseract/PKGBUILD | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'community/tesseract') diff --git a/community/tesseract/PKGBUILD b/community/tesseract/PKGBUILD index 9427ae468..11fd3b848 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 # Contributor: Andreas Hauser pkgname=tesseract -pkgver=3.00 -pkgrel=2 +pkgver=3.01 +pkgrel=1 pkgdesc="An OCR programm" arch=(x86_64 i686) 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 {} \; } -- cgit v1.2.3-54-g00ecf