wok-next view locale-zh_CN/receipt @ rev 15587
nvclock, nss_ldap: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 20:43:45 2013 +0000 (2013-11-30) |
parents | 919b102812ab |
children | 48d3d669a814 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Chinese Simplified locale pack."
7 MAINTAINER="lufeng369@slitaz.org"
8 WEB_SITE="http://www.slitaz.org/"
10 WANTED="glibc slitaz-i18n xorg-libX11"
11 DEPENDS="glibc-base wqy-microhei"
13 LOCALE="zh_CN"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 . $WOK/slitaz-i18n/stuff/locale-pack.functions
19 . $WOK/slitaz-i18n/stuff/locale-pack.conf
20 get_locale
22 GCONV_MODULES="
23 BIG5.so GBBIG5.so GBGBK.so
24 UTF-32.so GB18030.so EUC-CN.so
25 GBK.so UTF-7.so libGB.so"
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/usr/lib/gconv
29 cp /usr/bin/iconv $fs/usr/bin
30 for i in $GCONV_MODULES; do
31 cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
32 done
33 }
35 post_install()
36 {
37 if [ -z "$1" ]; then
38 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
39 echo Asia/Shanghai > /etc/TZ
40 export TZ=Asia/Shanghai
41 hwclock --hctosys
42 fi
43 }
45 # Back to C if it's the last used locale.
46 post_remove()
47 {
48 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
49 }