Skip to content

Commit

Permalink
tesseract: Fix hash, add post-install and fix hash in tesseract-langu…
Browse files Browse the repository at this point in the history
…ages (#54)

* tesseract: Add post-install and fix hash in tesseract-languages

* Fix hash
  • Loading branch information
niheaven authored May 20, 2019
1 parent 3a8b51a commit 3b91c2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bucket/tesseract-languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"hash": [
"6551f6ac0c8d0f75b1dd0fb9bc005af6b8ecc564db711a0e3b33dad2c7c23dd3",
"3af43a2420ce927dbce68474d644625947189a82ce6ae4fd32106399146819db",
"8f660323d8a7b7a0e8d2fae1a3439e6e470222bfbb990b2ab7fe9e1fb4791c0b",
"36f772980ff17c66a767f584a0d80bf2302a1afa585c01a226c1863afcea1392"
],
"extract_dir": "tessdata_fast-4.0.0",
Expand Down
10 changes: 8 additions & 2 deletions bucket/tesseract.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"architecture": {
"64bit": {
"url": "https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-v4.1.0-elag2019.exe#/dl.7z",
"hash": "e96a86a8f946908d35cc8ae83fb325eea8b570a7860655f622012dcc6ce3ec32"
"hash": "75b8a8b8d458a01d675f9493a67b22225cc6f71b13c20e8337a155aa0b403510"
},
"32bit": {
"url": "https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w32-setup-v4.1.0-elag2019.exe#/dl.7z",
"hash": "1cdd4db2db63c93036da32d64d653d4217cf5378bc39524ecabdc3ea1c52a7ba"
"hash": "082cd4b852f512cff544721df109721188667f84c383782d6828e6cba844db4b"
}
},
"bin": [
Expand All @@ -35,6 +35,12 @@
"TESSDATA_PREFIX": "$persist_dir\\tessdata"
},
"persist": "tessdata",
"post_install": [
"$langdir = versiondir tesseract-languages current $global",
"if (Test-Path $langdir) {",
" env \"TESSDATA_PREFIX\" $global $langdir",
"}"
],
"notes": [
"Recognition data files can be installed via \"scoop install tesseract-languages\"",
"or downloaded manually from https://github.com/tesseract-ocr/tessdata_fast"
Expand Down

0 comments on commit 3b91c2a

Please sign in to comment.