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