wok view locale-zh_CN/receipt @ rev 15607
libdvdread: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 20:15:24 2013 +0000 (2013-12-06) |
parents | 874b0d62ff7e |
children | f398031ad845 |
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 GCONV_MODULES="
24 BIG5.so GBBIG5.so GBGBK.so
25 UTF-32.so GB18030.so EUC-CN.so
26 GBK.so UTF-7.so libGB.so"
27 mkdir -p $fs/usr/bin
28 mkdir -p $fs/usr/lib/gconv
30 cp /usr/bin/iconv $fs/usr/bin
31 for i in $GCONV_MODULES; do
32 cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
33 done
34 }
36 post_install()
37 {
38 if [ -z "$1" ]; then
39 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
40 echo Asia/Shanghai > /etc/TZ
41 export TZ=Asia/Shanghai
42 hwclock --hctosys
43 fi
44 }
46 # Back to C if it's the last used locale.
47 post_remove()
48 {
49 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
50 }