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