wok-next rev 7401
locale-zh_CN:add Chinese timezone infomation
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Sat Nov 27 17:06:15 2010 +0800 (2010-11-27) |
parents | 5be8901d4237 |
children | fc03cca5d388 |
files | locale-zh_CN/receipt |
line diff
1.1 --- a/locale-zh_CN/receipt Sat Nov 27 01:50:29 2010 +0000 1.2 +++ b/locale-zh_CN/receipt Sat Nov 27 17:06:15 2010 +0800 1.3 @@ -1,12 +1,14 @@ 1.4 # SliTaz package receipt 1.5 1.6 +PACKED_SIZE="508K" 1.7 +UNPACKED_SIZE="2.4M" 1.8 PACKAGE="locale-zh_CN" 1.9 VERSION="2.0" 1.10 CATEGORY="system-tools" 1.11 SHORT_DESC="Chinese Simplified locale pack." 1.12 MAINTAINER="lufeng369@slitaz.org" 1.13 DEPENDS="glibc-base wqy-microhei" 1.14 -BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 1.15 +BUILD_DEPENDS="glibc-locale xorg-libX11" 1.16 WEB_SITE="http://www.slitaz.org/" 1.17 1.18 1.19 @@ -35,16 +37,22 @@ 1.20 for i in $GCONV_MODULES; do 1.21 cp /usr/lib/gconv/$i $fs/usr/lib/gconv 1.22 done 1.23 + 1.24 + install -D /usr/share/zoneinfo/Asia/Shanghai $fs/usr/share/zoneinfo/Asia/Shanghai -m 644 1.25 + install -D /usr/share/zoneinfo/posix/Asia/Shanghai $fs/usr/share/posix/zoneinfo/Asia/Shanghai -m 644 1.26 + install -D /usr/share/zoneinfo/right/Asia/Shanghai $fs/usr/share/right/zoneinfo/Asia/Shanghai -m 644 1.27 } 1.28 post_install() 1.29 { 1.30 echo LANG=zh_CN.UTF-8 > /etc/locale.conf 1.31 + echo Asia/Shanghai > /etc/TZ 1.32 + export TZ=Asia/Shanghai 1.33 + hwclock --hctosys 1.34 } 1.35 # Back to C if it's the last used locale. 1.36 post_remove() 1.37 { 1.38 if grep -q $LOCALEDEF /etc/locale.conf; then 1.39 echo "LANG=C" > /etc/locale.conf 1.40 - echo "LC_ALL=C" >> /etc/locale.conf 1.41 fi 1.42 }