wok-6.x rev 7377
Modify locale-zh_CN to enable display Chinese Font correctly
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Thu Nov 25 22:17:40 2010 +0000 (2010-11-25) |
parents | f454cca8b5e2 |
children | 1cf37c99304a |
files | locale-zh_CN/receipt |
line diff
1.1 --- a/locale-zh_CN/receipt Thu Nov 25 01:13:22 2010 +0000 1.2 +++ b/locale-zh_CN/receipt Thu Nov 25 22:17:40 2010 +0000 1.3 @@ -1,46 +1,45 @@ 1.4 # SliTaz package receipt 1.5 1.6 PACKAGE="locale-zh_CN" 1.7 -VERSION="1.1" 1.8 +VERSION="2.0" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Chinese Simplified locale pack." 1.11 -MAINTAINER="pankso@slitaz.org" 1.12 -DEPENDS="glibc-base wqy-bitmapfont" 1.13 +MAINTAINER="lufeng369@slitaz.org" 1.14 +DEPENDS="glibc-base wqy-microhei" 1.15 BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 1.16 WEB_SITE="http://www.slitaz.org/" 1.17 1.18 -CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 1.19 -glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 1.20 + 1.21 1.22 LOCALE="zh_CN" 1.23 LOCALEDEF="zh_CN" 1.24 CHARMAP="UTF-8" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 - # Ensure packages are built. 1.30 - for pkg in $CORE_PKGS 1.31 - do 1.32 - [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 1.33 - done 1.34 -} 1.35 1.36 # Rules to gen a SliTaz package suitable for Tazpkg. 1.37 # Genereted locale files are in /usr/lib/locale. 1.38 genpkg_rules() 1.39 { 1.40 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 1.41 - PKG_NAME="$PACKAGE" 1.42 - PKG_VERS="$VERSION" 1.43 - mk_locale_dir 1.44 - get_slitaz_messages 1.45 - get_core_messages 1.46 - PACKAGE="$PKG_NAME" 1.47 - VERSION="$PKG_VERS" 1.48 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 1.49 + 1.50 + GCONV_MODULES=" 1.51 + BIG5.so GBBIG5.so GBGBK.so 1.52 + UTF-32.so GB18030.so EUC-CN.so 1.53 + GBK.so UTF-7.so libGB.so" 1.54 + mkdir -p $fs/usr/bin 1.55 + mkdir -p $fs/usr/lib/gconv 1.56 + 1.57 + 1.58 + cp /usr/bin/iconv $fs/usr/bin 1.59 + for i in $GCONV_MODULES; do 1.60 + cp /usr/lib/gconv/$i $fs/usr/lib/gconv 1.61 + done 1.62 } 1.63 - 1.64 +post_install() 1.65 +{ 1.66 + echo LANG=zh_CN.UTF-8 > /etc/locale.conf 1.67 +} 1.68 # Back to C if it's the last used locale. 1.69 post_remove() 1.70 {