wok-current view locale-zh_CN/receipt @ rev 16602
Remove python-piface* (work only with python3) but add libmcp23s17 + libpifacedigital C library and utility
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 17:38:57 2014 +0200 (2014-05-07) |
parents | c4533f65e171 |
children | cea5a9fa7152 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="4.2"
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"
15 LOCALE_DEPENDS="iso14651_t1_pinyin" # for zh_CN
16 KB_FLAGS=""
17 GCONV="EUC-CN libGB GBK"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 . $WOK/slitaz-i18n/stuff/locale-pack.functions
23 . $WOK/slitaz-i18n/stuff/locale-pack.conf
24 get_locale
26 # do really zh_CN locale need this?
27 #GCONV_MODULES="
28 # BIG5.so GBBIG5.so GBGBK.so
29 # UTF-32.so GB18030.so EUC-CN.so
30 # GBK.so UTF-7.so libGB.so"
31 #mkdir -p $fs/usr/bin
32 #mkdir -p $fs/usr/lib/gconv
34 #cp /usr/bin/iconv $fs/usr/bin
35 #for i in $GCONV_MODULES; do
36 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
37 #done
38 }
40 post_install()
41 {
42 if [ -z "$1" ]; then
43 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
44 echo Asia/Shanghai > /etc/TZ
45 export TZ=Asia/Shanghai
46 hwclock --hctosys
47 fi
48 }
50 # Back to C if it's the last used locale.
51 post_remove()
52 {
53 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
54 }