wok view locale-zh_CN/receipt @ rev 8029

Add all xorg changes from wok-experimental.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jan 19 19:41:12 2011 +0000 (2011-01-19)
parents 23b733bbc00a
children e63d22f12936
line source
1 # SliTaz package receipt
3 PACKED_SIZE="508K"
4 UNPACKED_SIZE="2.4M"
5 PACKAGE="locale-zh_CN"
6 VERSION="2.0"
7 CATEGORY="system-tools"
8 SHORT_DESC="Chinese Simplified locale pack."
9 MAINTAINER="lufeng369@slitaz.org"
10 DEPENDS="glibc-base wqy-microhei"
11 BUILD_DEPENDS="glibc-locale xorg-libX11"
12 WEB_SITE="http://www.slitaz.org/"
16 LOCALE="zh_CN"
17 LOCALEDEF="zh_CN"
18 CHARMAP="UTF-8"
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 # Genereted locale files are in /usr/lib/locale.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
26 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8
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
36 cp /usr/bin/iconv $fs/usr/bin
37 for i in $GCONV_MODULES; do
38 cp /usr/lib/gconv/$i $fs/usr/lib/gconv
39 done
41 install -D /usr/share/zoneinfo/Asia/Shanghai $fs/usr/share/zoneinfo/Asia/Shanghai -m 644
42 install -D /usr/share/zoneinfo/posix/Asia/Shanghai $fs/usr/share/posix/zoneinfo/Asia/Shanghai -m 644
43 install -D /usr/share/zoneinfo/right/Asia/Shanghai $fs/usr/share/right/zoneinfo/Asia/Shanghai -m 644
44 }
45 post_install()
46 {
47 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
48 echo Asia/Shanghai > /etc/TZ
49 export TZ=Asia/Shanghai
50 hwclock --hctosys
51 }
52 # Back to C if it's the last used locale.
53 post_remove()
54 {
55 if grep -q $LOCALEDEF /etc/locale.conf; then
56 echo "LANG=C" > /etc/locale.conf
57 fi
58 }