wok view locale-zh_CN/receipt @ rev 19246
Up slitaz-tools (996)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 29 10:23:28 2016 +0200 (2016-06-29) |
parents | ec332cdcdbc1 |
children | caa3228f7d63 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="5.0"
5 CATEGORY="localization"
6 SHORT_DESC="Chinese Simplified locale pack."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="i486 arm"
12 WANTED="glibc slitaz-i18n xorg-libX11 flag-icons tzdata"
13 DEPENDS="glibc-base wqy-microhei"
15 LOCALE="zh_CN"
16 LOCALE_DEPENDS="iso14651_t1_pinyin" # for zh_CN
17 KBD=""
18 KB_FLAGS="CN:cn"
19 GCONV="EUC-CN GBK GB18030 libGB"
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 . $WOK/slitaz-i18n/stuff/locale-pack.functions
25 . $WOK/slitaz-i18n/stuff/locale-pack.conf
26 get_locale
28 # do really zh_CN locale need this?
29 #GCONV_MODULES="
30 # BIG5.so GBBIG5.so GBGBK.so
31 # UTF-32.so GB18030.so EUC-CN.so
32 # GBK.so UTF-7.so libGB.so"
33 #mkdir -p $fs/usr/bin
34 #mkdir -p $fs/usr/lib/gconv
36 #cp /usr/bin/iconv $fs/usr/bin
37 #for i in $GCONV_MODULES; do
38 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
39 #done
40 }
42 post_install()
43 {
44 if [ -z "$1" ]; then
45 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
46 echo Asia/Shanghai > /etc/TZ
47 export TZ=Asia/Shanghai
48 hwclock --hctosys
49 fi
50 }
52 # Back to C if it's the last used locale.
53 post_remove()
54 {
55 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
56 }