wok-next annotate tesseract-ocr-lang/receipt @ rev 20026
Add tesseract-ocr-lang
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 22 14:09:43 2017 +0200 (2017-10-22) |
parents | |
children | 7bb84764ea8c |
rev | line source |
---|---|
pascal@20026 | 1 # SliTaz package receipt. |
pascal@20026 | 2 |
pascal@20026 | 3 PACKAGE="tesseract-ocr-lang" |
pascal@20026 | 4 VERSION="3.02" |
pascal@20026 | 5 CATEGORY="office" |
pascal@20026 | 6 SHORT_DESC="Language data packs for Tesseract OCR." |
pascal@20026 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20026 | 8 LICENSE="Apache" |
pascal@20026 | 9 WEB_SITE="http://code.google.com/p/tesseract-ocr/" |
pascal@20026 | 10 |
pascal@20026 | 11 SPLIT="tesseract-ocr-lang-ara tesseract-ocr-lang-bul \ |
pascal@20026 | 12 tesseract-ocr-lang-cat tesseract-ocr-lang-ces tesseract-ocr-lang-chi_sim \ |
pascal@20026 | 13 tesseract-ocr-lang-chi_tra tesseract-ocr-lang-dan tesseract-ocr-lang-deu \ |
pascal@20026 | 14 tesseract-ocr-lang-ell tesseract-ocr-lang-eng tesseract-ocr-lang-fin \ |
pascal@20026 | 15 tesseract-ocr-lang-fra tesseract-ocr-lang-glg tesseract-ocr-lang-heb \ |
pascal@20026 | 16 tesseract-ocr-lang-hin tesseract-ocr-lang-hrv tesseract-ocr-lang-hun \ |
pascal@20026 | 17 tesseract-ocr-lang-ind tesseract-ocr-lang-isl tesseract-ocr-lang-jpn \ |
pascal@20026 | 18 tesseract-ocr-lang-kor tesseract-ocr-lang-nld tesseract-ocr-lang-nor \ |
pascal@20026 | 19 tesseract-ocr-lang-pol tesseract-ocr-lang-por tesseract-ocr-lang-ron \ |
pascal@20026 | 20 tesseract-ocr-lang-rus tesseract-ocr-lang-slk tesseract-ocr-lang-slv \ |
pascal@20026 | 21 tesseract-ocr-lang-spa tesseract-ocr-lang-srp tesseract-ocr-lang-swa \ |
pascal@20026 | 22 tesseract-ocr-lang-tha tesseract-ocr-lang-tur tesseract-ocr-lang-ukr" |
pascal@20026 | 23 |
pascal@20026 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20026 | 25 genpkg_rules() |
pascal@20026 | 26 { |
pascal@20026 | 27 mkdir -p $fs/usr/share |
pascal@20026 | 28 case $PACKAGE in |
pascal@20026 | 29 tesseract-ocr-lang) |
pascal@20026 | 30 DEPENDS="$SPLIT" |
pascal@20026 | 31 ;; |
pascal@20026 | 32 tesseract-ocr-lang-*) |
pascal@20026 | 33 TARBALL="tesseract-ocr-$VERSION.${PACKAGE#*lang-}.tar.gz" |
pascal@20026 | 34 EXTRA_SOURCE_FILES="$TARBALL" |
pascal@20026 | 35 WGET_URL="http://tesseract-ocr.googlecode.com/files/$TARBALL" |
pascal@20026 | 36 DEPENDS="tesseract-ocr" |
pascal@20026 | 37 [ -s $SOURCES_REPOSITORY/$TARBALL ] || |
pascal@20026 | 38 wget -P $SOURCES_REPOSITORY $WGET_URL |
pascal@20026 | 39 tar xzf $SOURCES_REPOSITORY/$TARBALL -C $fs/usr/share/ |
pascal@20026 | 40 while read lang text; do |
pascal@20026 | 41 [ $lang == ${PACKAGE#*lang-} ] || continue |
pascal@20026 | 42 CAT="office|$text language data for Tesseract OCR." |
pascal@20026 | 43 break |
pascal@20026 | 44 done <<EOT |
pascal@20026 | 45 ara Arabic |
pascal@20026 | 46 bul Bulgarian |
pascal@20026 | 47 cat Catalan |
pascal@20026 | 48 ces Czetch |
pascal@20026 | 49 chi_sim Chinese (Simplified) |
pascal@20026 | 50 chi_tra Chinese (Traditional) |
pascal@20026 | 51 dan Danish |
pascal@20026 | 52 deu German |
pascal@20026 | 53 ell Greek |
pascal@20026 | 54 eng English |
pascal@20026 | 55 fin Finnish |
pascal@20026 | 56 fra French |
pascal@20026 | 57 glg Galician |
pascal@20026 | 58 heb Hebrew |
pascal@20026 | 59 hin Hindi |
pascal@20026 | 60 hrv Croatian |
pascal@20026 | 61 hun Hungarian |
pascal@20026 | 62 ind Indonesian |
pascal@20026 | 63 isl Icelandic |
pascal@20026 | 64 jpn Japanese |
pascal@20026 | 65 kor Korean |
pascal@20026 | 66 nld Dutch |
pascal@20026 | 67 nor Norwegian |
pascal@20026 | 68 pol Polish |
pascal@20026 | 69 por Portuguese |
pascal@20026 | 70 ron Romanian |
pascal@20026 | 71 rus Russian |
pascal@20026 | 72 slk Slovakian |
pascal@20026 | 73 slv Slovenian |
pascal@20026 | 74 spa Spanish |
pascal@20026 | 75 srp Serbian |
pascal@20026 | 76 swa Swahili |
pascal@20026 | 77 tha Thai |
pascal@20026 | 78 tur Tukish |
pascal@20026 | 79 ukr Ukranian |
pascal@20026 | 80 EOT |
pascal@20026 | 81 ;; |
pascal@20026 | 82 esac |
pascal@20026 | 83 } |