wok view locale-zh_CN/receipt @ rev 7392
Up: pcsxr-svn to 60142.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Nov 26 05:09:19 2010 +0000 (2010-11-26) |
parents | d42b38d61b43 |
children | 22b72b21a488 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Chinese Simplified locale pack."
7 MAINTAINER="lufeng369@slitaz.org"
8 DEPENDS="glibc-base wqy-microhei"
9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
10 WEB_SITE="http://www.slitaz.org/"
14 LOCALE="zh_CN"
15 LOCALEDEF="zh_CN"
16 CHARMAP="UTF-8"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 # Genereted locale files are in /usr/lib/locale.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
24 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8
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
34 cp /usr/bin/iconv $fs/usr/bin
35 for i in $GCONV_MODULES; do
36 cp /usr/lib/gconv/$i $fs/usr/lib/gconv
37 done
38 }
39 post_install()
40 {
41 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
42 }
43 # Back to C if it's the last used locale.
44 post_remove()
45 {
46 if grep -q $LOCALEDEF /etc/locale.conf; then
47 echo "LANG=C" > /etc/locale.conf
48 echo "LC_ALL=C" >> /etc/locale.conf
49 fi
50 }