wok-next view locale-zh_CN/receipt @ rev 18282
mate-control-center: contains /usr/share/mime: run update-mime-database
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Aug 10 16:37:12 2015 +0300 (2015-08-10) |
parents | cea5a9fa7152 |
children | 7042a09beaeb |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="5.0"
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 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 }