wok view locale-zh_CN/receipt @ rev 16546

dialog: enable nls (make translations for locale-* packages)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 29 11:19:12 2014 +0000 (2014-04-29)
parents 48d3d669a814
children c4533f65e171
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 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
11 WANTED="glibc slitaz-i18n xorg-libX11"
12 DEPENDS="glibc-base wqy-microhei"
14 LOCALE="zh_CN"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 . $WOK/slitaz-i18n/stuff/locale-pack.functions
20 . $WOK/slitaz-i18n/stuff/locale-pack.conf
21 get_locale
23 # "zh_CN" locale definition based on "iso14651_t1_pinyin" locale definition file
24 cp -a $WOK/glibc/install/usr/share/i18n/locales/iso14651_t1_pinyin $fs/usr/share/i18n/locales
26 GCONV_MODULES="
27 BIG5.so GBBIG5.so GBGBK.so
28 UTF-32.so GB18030.so EUC-CN.so
29 GBK.so UTF-7.so libGB.so"
30 mkdir -p $fs/usr/bin
31 mkdir -p $fs/usr/lib/gconv
33 cp /usr/bin/iconv $fs/usr/bin
34 for i in $GCONV_MODULES; do
35 cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
36 done
37 }
39 post_install()
40 {
41 if [ -z "$1" ]; then
42 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
43 echo Asia/Shanghai > /etc/TZ
44 export TZ=Asia/Shanghai
45 hwclock --hctosys
46 fi
47 }
49 # Back to C if it's the last used locale.
50 post_remove()
51 {
52 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
53 }