wok-current view locale-zh_CN/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 months ago) |
parents | a52ffca61a1d |
children |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="5.0"
5 CATEGORY="localization"
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 [ -e /dev/misc/rtc ] && hwclock --hctosys
49 fi
50 :
51 }
53 # Back to C if it's the last used locale.
54 post_remove()
55 {
56 grep -qs =$LOCALE /etc/locale.conf &&
57 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
58 }