diff options
Diffstat (limited to 'graphics/tesseract/tesseract.SlackBuild')
-rw-r--r-- | graphics/tesseract/tesseract.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/graphics/tesseract/tesseract.SlackBuild b/graphics/tesseract/tesseract.SlackBuild index 90ba6f3577..20be19b845 100644 --- a/graphics/tesseract/tesseract.SlackBuild +++ b/graphics/tesseract/tesseract.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for tesseract # Copyright 2009-2010 Pierre Cazenave <pwcazenave {at} gmail [dot] com> -# Copyright 2013 LukenShiro, Italy +# Copyright 2013-2015 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -31,7 +31,7 @@ # Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org> PRGNAM=tesseract -VERSION=${VERSION:-3.02.02} +VERSION=${VERSION:-3.04.00} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,8 +71,7 @@ DOCFILES="AUTHORS COPYING ChangeLog INSTALL NEWS README ReleaseNotes" # slk ron por pol nor nld msa mlt mkd mal lit lav kor kan ita_old ita isl # ind chr hun hrv hin heb glg frm frk fra fin eus est equ epo enm ell due # dan ces cat bul ben bel aze ara afr jpn chi_sim chi_tra rus vie -# see https://code.google.com/p/tesseract-ocr/downloads/list for complete list -LANGVER=${LANGVER:-3.02} +# see https://github.com/tesseract-ocr/tessdata/ for a list. LANGNAM=${LANGNAM:-"eng"} set -e @@ -80,7 +79,7 @@ set -e rm -rf $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -102,13 +101,14 @@ CFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +make training +make training-install DESTDIR=$PKG -# Extract language name described above; +# Install language name described above; # language files are not automatically installed. mkdir -p $PKG/usr/share/tessdata -for LNG in $LANGNAM; \ - do tar xvf $CWD/tesseract-ocr-$LANGVER.$LNG.tar.gz ; \ - mv tesseract-ocr/tessdata/* $PKG/usr/share/tessdata/ +for LNG in $LANGNAM ; \ + do cp $CWD/$LNG.traineddata $PKG/usr/share/tessdata/ ; \ done find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |