wok view locale-zh_CN/receipt @ rev 17692
xrdp: update start scripts (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 23 10:14:13 2015 +0100 (2015-02-23) |
parents | c667db027c32 |
children | ec332cdcdbc1 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="4.2"
5 CATEGORY="system-tools"
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"
13 DEPENDS="glibc-base wqy-microhei"
15 LOCALE="zh_CN"
16 LOCALE_DEPENDS="iso14651_t1_pinyin" # for zh_CN
17 KB_FLAGS=""
18 GCONV="EUC-CN libGB GBK"
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 . $WOK/slitaz-i18n/stuff/locale-pack.functions
24 . $WOK/slitaz-i18n/stuff/locale-pack.conf
25 get_locale
27 # do really zh_CN locale need this?
28 #GCONV_MODULES="
29 # BIG5.so GBBIG5.so GBGBK.so
30 # UTF-32.so GB18030.so EUC-CN.so
31 # GBK.so UTF-7.so libGB.so"
32 #mkdir -p $fs/usr/bin
33 #mkdir -p $fs/usr/lib/gconv
35 #cp /usr/bin/iconv $fs/usr/bin
36 #for i in $GCONV_MODULES; do
37 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
38 #done
39 }
41 post_install()
42 {
43 if [ -z "$1" ]; then
44 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
45 echo Asia/Shanghai > /etc/TZ
46 export TZ=Asia/Shanghai
47 hwclock --hctosys
48 fi
49 }
51 # Back to C if it's the last used locale.
52 post_remove()
53 {
54 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
55 }