wok-next view tesseract-data/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 31305a1a8dad
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tesseract-data"
4 VERSION="3.04.00"
5 CATEGORY="meta"
6 SHORT_DESC="Language data for Tesseract OCR"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/tesseract-ocr/tessdata"
10 HOST_ARCH="any"
11 REPOLOGY="tesseract-ocr-data"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/tesseract-ocr/tessdata/archive/$VERSION.tar.gz"
16 t='tesseract'
17 SPLIT="\
18 $t-afr $t-amh $t-ara $t-asm $t-aze $t-aze_cyrl $t-bel \
19 $t-ben $t-bod $t-bos $t-bul $t-cat $t-ceb $t-ces \
20 $t-chi_sim $t-chi_tra $t-chr $t-cym $t-dan $t-dan_frak $t-deu \
21 $t-deu_frak $t-dzo $t-ell $t-eng $t-enm $t-epo $t-equ \
22 $t-est $t-eus $t-fas $t-fin $t-fra $t-frk $t-frm \
23 $t-gle $t-glg $t-grc $t-guj $t-hat $t-heb $t-hin \
24 $t-hrv $t-hun $t-iku $t-ind $t-isl $t-ita $t-ita_old \
25 $t-jav $t-jpn $t-kan $t-kat $t-kat_old $t-kaz $t-khm \
26 $t-kir $t-kor $t-kur $t-lao $t-lat $t-lav $t-lit \
27 $t-mal $t-mar $t-mkd $t-mlt $t-msa $t-mya $t-nep \
28 $t-nld $t-nor $t-ori $t-osd $t-pan $t-pol $t-por \
29 $t-pus $t-ron $t-rus $t-san $t-sin $t-slk $t-slk_frak \
30 $t-slv $t-spa $t-spa_old $t-sqi $t-srp $t-srp_latn $t-swa \
31 $t-swe $t-syr $t-tam $t-tel $t-tgk $t-tgl $t-tha \
32 $t-tir $t-tur $t-uig $t-ukr $t-urd $t-uzb $t-uzb_cyrl \
33 $t-vie $t-yid"
35 compile_rules() {
36 mkdir -p $install/usr/share/tessdata/
37 mv * $install/usr/share/tessdata/
38 chmod -R g-w $install
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 tesseract-data)
44 DEPENDS="$SPLIT"
45 ;;
46 *)
47 l=${PACKAGE#*-}
48 copy $l.*
49 DEPENDS="tesseract"
50 while read i j; do
51 [ "$l" == "$i" ] && lang="$j"
52 done << EOT
53 afr Afrikaans
54 amh Amharic
55 ara Arabic
56 asm Assamese
57 aze Azerbaijani
58 aze_cyrl Azerbaijani Cyrillic
59 bel Belarusian
60 ben Bengali
61 bod Tibetan Standard
62 bos Bosnian
63 bul Bulgarian
64 cat Catalan
65 ceb Cebuano
66 ces Czech
67 chi_sim Simplified Chinese
68 chi_tra Traditional Chinese
69 chr Cherokee
70 cym Welsh
71 dan Danish
72 dan_frak Danish Fraktur
73 deu German
74 deu_frak German Fraktur
75 dzo Dzongkha
76 ell Greek
77 eng English
78 enm English, Middle (1100-1500)
79 epo Esperanto
80 equ equations
81 est Estonian
82 eus Basque
83 fas Persian
84 fin Finnish
85 fra French
86 frk Frankish
87 frm French, Middle (ca.1400-1600)
88 gle Irish
89 glg Galician
90 grc Greek, Ancient (to 1453)
91 guj Gujarati
92 hat Haitian
93 heb Hebrew
94 hin Hindi
95 hrv Croatian
96 hun Hungarian
97 iku Inuktitut
98 ind Indonesian
99 isl Icelandic
100 ita Italian
101 ita_old Italian - Old
102 jav Javanese
103 jpn Japanese
104 kan Kannada
105 kat Georgian
106 kat_old Old Georgian
107 kaz Kazakh
108 khm Khmer
109 kir Kyrgyz
110 kor Korean
111 kur Kurdish
112 lao Lao
113 lat Latin
114 lav Latvian
115 lit Lithuanian
116 mal Malayalam
117 mar Marathi
118 mkd Macedonian
119 mlt Maltese
120 msa Malay
121 mya Burmese
122 nep Nepali
123 nld Dutch
124 nor Norwegian
125 ori Oriya
126 osd script and orientation
127 pan Punjabi
128 pol Polish
129 por Portuguese
130 pus Pashto
131 ron Romanian
132 rus Russian
133 san Sanskrit
134 sin Sinhala
135 slk Slovak
136 slk_frak Slovak Fractur
137 slv Slovenian
138 spa Spanish
139 spa_old Spanish, Castilian - Old
140 sqi Albanian
141 srp Serbian
142 srp_latn Serbian (Latin)
143 swa Swahili
144 swe Swedish
145 syr Syriac
146 tam Tamil
147 tel Telugu
148 tgk Tajik
149 tgl Tagalog
150 tha Thai
151 tir Tigrinya
152 tur Tukish
153 uig Uyghur
154 ukr Ukrainian
155 urd Urdu
156 uzb Uzbek
157 uzb_cyrl Uzbek (Cyrillic)
158 vie Vietnamese
159 yid Yiddish
160 EOT
161 CAT="office|$lang"
162 ;;
163 esac
164 }