wok-next view slitaz-i18n/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | f2fe8c08dc89 |
children | 5dcba97b45a1 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slitaz-i18n"
4 VERSION="6.0"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz internationalization"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="i486 arm"
12 BUILD_DEPENDS_arm=" "
13 SPLIT="locale-ar locale-ca locale-cs locale-da locale-de locale-el locale-en \
14 locale-es locale-fi locale-fr locale-hr locale-hu locale-id locale-is \
15 locale-it locale-ja locale-nb locale-nl locale-nn locale-pl locale-pt \
16 locale-pt_BR locale-ro locale-ru locale-sl locale-sv locale-tr locale-uk \
17 locale-zh_CN locale-zh_TW slitaz-i18n"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 . $stuff/locale-pack.functions
23 . $stuff/locale-pack.conf
24 case $PACKAGE in
25 *-i18n)
26 # Allow to build the packages who want me...
27 sed -i "/^$PACKAGE\$/d" $CACHE/broken 2>/dev/null || true
29 # Recook tzdata package: we move files from tzdata to locale-* packages
30 cook tzdata
32 mkdir -p $fs/usr/share/doc/slitaz
33 cat > $fs/usr/share/doc/slitaz/i18n.txt <<EOT
34 SliTaz i18n information
35 ================================================================================
37 This package provides the necessary functions and configs for the SliTaz locale
38 pack. SliTaz uses UTF-8 by default and tazlocale (from SliTaz tools) to
39 configure the system language.
42 Translated packages files included in the core languages pack (from upstream):
43 ----
44 $(echo $CORE_PKGS | fold -s)
45 ----
47 SliTaz i18n project coordination is done on the SCN and doc is on the website:
49 http://www.slitaz.org/i18n.php
52 ================================================================================
53 EOT
54 ;;
55 *-ar) C="Arabic"
56 get_locale "ar" "" "" \
57 "" "SA:ara US:us" \
58 "ISO8859-6 IBM864 CP1256";;
59 *-ca) C="Catalan"
60 # it_IT for ca_IT
61 get_locale "ca" "it_IT" "" \
62 "" "AD:ad" \
63 "CP1252 ISO8859-1 ISO8859-3 ISO8859-9 ISO8859-9E ISO8859-15";;
64 *-cs) C="Czech"
65 get_locale "cs" "" "" \
66 "cz-lat2" "CZ:cz" \
67 "ISO8859-2 IBM852 CP1250";;
68 *-da) C="Danish"
69 get_locale "da" "" "" \
70 "dk-latin1" "DK:dk" \
71 "IBM865 ISO8859-1 ISO8859-15";;
72 *-de) C="German"
73 # fr_BE for de_BE
74 get_locale "de" "fr_BE" "" \
75 "de-latin1 de_CH-latin1 sg-latin1" "DE:de AT:at CH:ch" \
76 "ISO8859-1 ISO8859-15";;
77 *-el) C="Greek"
78 get_locale "el" "" "" \
79 "gr" "GR:gr US:us" \
80 "ISO8859-7 IBM869 CP1253 ISO8859-15";;
81 *-en) C="English"
82 get_locale "en" "" "" \
83 "uk us us-acentos dvorak dvorak-l dvorak-r" "CM:cm GH:gh NG:ng ZA:za GB:gb US:us" \
84 "ISO8859-1 ISO8859-15";;
85 *-es) C="Spanish"
86 get_locale "es" "" "" \
87 "es" "ES:es ES:latam" \
88 "ISO8859-1 ISO8859-15";;
89 *-fi) C="Finnish"
90 get_locale "fi" "" "" \
91 "fi" "FI:fi" \
92 "ISO8859-1 ISO8859-15";;
93 *-fr) C="French"
94 # en_CA for fr_CA; de_CH for fr_CH
95 get_locale "fr" "en_CA de_CH" "" \
96 "fr-latin1 be-latin1 cf fr_CH-latin1" "FR:fr CA:ca CD:cd GN:gn" \
97 "ISO8859-1 ISO8859-15";;
98 *-hr) C="Croatian"
99 get_locale "hr" "" "" \
100 "croat" "HR:hr" \
101 "ISO8859-2";;
102 *-hu) C="Hungarian"
103 get_locale "hu" "" "" \
104 "hu" "HU:hu" \
105 "ISO8859-2 IBM852 CP1250";;
106 *-id) C="Indonesian"
107 get_locale "id" "" "" \
108 "" "" \
109 "ISO8859-1 ISO8859-15";;
110 *-is) C="Icelandic"
111 get_locale "is" "" "" \
112 "is-latin1" "IS:is" \
113 "ISO8859-1 ISO8859-15";;
114 *-it) C="Italian"
115 # de_CH for it_CH
116 get_locale "it" "de_CH" "" \
117 "it" "IT:it" \
118 "ISO8859-1 ISO8859-15";;
119 *-ja) C="Japanese"
120 get_locale "ja" "translit_cjk_variants" "" \
121 "jp106" "JP:jp US:us" \
122 "EUC-JP EUC-JP-MS SJIS libJIS";;
123 *-nb) C="Norwegian (Bokmål)"
124 get_locale "nb" "" "" \
125 "no-latin1" "NO:no" \
126 "ISO8859-1 ISO8859-15";;
127 *-nl) C="Dutch"
128 get_locale "nl" "" "" \
129 "nl2" "NL:nl" \
130 "ISO8859-1 ISO8859-15";;
131 *-nn) C="Norwegian (Nynorsk)"
132 get_locale "nn" "" "" \
133 "no-latin1" "NO:no" \
134 "ISO8859-1 ISO8859-15";;
135 *-pl) C="Polish"
136 get_locale "pl" "" "" \
137 "pl2" "PL:pl" \
138 "ISO8859-2 IBM852 CP1250";;
139 *-pt) C="Portuguese"
140 get_locale "pt" "" "pt_PT pt_PT@euro" \
141 "pt-latin1" "PT:pt" \
142 "ISO8859-1 ISO8859-15";;
143 *-pt_BR) C="Portuguese/Brazilian"
144 # pt_PT for pt_BR
145 get_locale "pt_BR" "pt_PT" "" \
146 "br-abnt2 us-acentos" "BR:br" \
147 "ISO8859-1 ISO8859-15";;
148 *-ro) C="Romanian"
149 get_locale "ro" "" "" \
150 "ro ro_std ro_win" "RO:ro" \
151 "IBM852 CP1250 ISO8859-2 ISO8859-16";;
152 *-ru) C="Russian"
153 get_locale "ru" "" "" \
154 "ru" "US:us RU:ru UA:ua" \
155 "ISO8859-5 KOI8-R KOI8-U IBM866 CP1251";;
156 *-sl) C="Slovenian"
157 get_locale "sl" "" "" \
158 "slovene" "SI:si" \
159 "ISO8859-2 IBM852 CP1250";;
160 *-sv) C="Swedish"
161 # fi_FI for sv_FI; fi_FI@euro for sv_FI@euro
162 get_locale "sv" "fi_FI fi_FI@euro" "" \
163 "se-lat6" "SE:se" \
164 "ISO8859-1 ISO8859-15";;
165 *-tr) C="Turkish"
166 get_locale "tr" "" "" \
167 "trq tr_q-latin5" "TR:tr" \
168 "ISO8859-9";;
169 *-uk) C="Ukrainian"
170 get_locale "uk" "" "" \
171 "ua" "US:us RU:ru UA:ua" \
172 "ISO8859-5 KOI8-R KOI8-U IBM866 CP1251";;
173 *-zh_CN) C="Chinese Simplified"
174 get_locale "zh_CN" "iso14651_t1_pinyin" "" \
175 "" "CN:cn" \
176 "EUC-CN GBK GB18030 libGB";;
177 *-zh_TW) C="Chinese Traditional"
178 get_locale "zh_TW" "zh_CN" "" \
179 "" "TW:tw" \
180 "BIG5 EUC-TW libCNS";;
181 esac
183 case $PACKAGE in
184 *-i18n) DEPENDS="";;
185 *-zh_CN) DEPENDS="glibc-base wqy-microhei";;
186 *-zh_TW) DEPENDS="glibc-base pcf-uming";;
187 *) DEPENDS="glibc-base";;
188 esac
190 case $PACKAGE in
191 locale-*) CAT="localization|$C locale pack";;
192 esac
193 }
195 # Back to C if it's the last used locale.
196 post_remove() {
197 [ "$PACKAGE" == 'slitaz-i18n' ] ||
198 echo -e "LANG=C\nLC_ALL=C" > "$1/etc/locale.conf"
199 }
201 post_install_locale_zh_CN() {
202 if [ -z "$1" ]; then
203 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
204 echo Asia/Shanghai > /etc/TZ
205 export TZ=Asia/Shanghai
206 [ -e /dev/misc/rtc ] && hwclock --hctosys
207 fi
208 :
209 }