From bb290b16afa478219c43c166fd9602e5ca58dd63 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 7 Jan 2017 00:59:09 -0500 Subject: [PATCH] tesseract: Fix build after tessdata repo updates --- packages/tesseract/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/tesseract/build.sh b/packages/tesseract/build.sh index 5333c5f9d..5e020320a 100644 --- a/packages/tesseract/build.sh +++ b/packages/tesseract/build.sh @@ -20,6 +20,9 @@ termux_step_post_make_install() { rm -f eng.* for f in cube.{bigrams,fold,lm,nn,params,size,word-freq} tesseract_cube.nn traineddata; do f=eng.$f - termux_download https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/$f $f + # From the tessdata README: "These language data files only work with + # Tesseract 4. They are based on the sources in tesseract-ocr/langdata on GitHub. + # Get language data files for Tesseract 3.04 or 3.05 from the 3.04 tree." + termux_download https://raw.githubusercontent.com/tesseract-ocr/tessdata/3.04.00/$f $f done }