wok-next annotate locale-zh_CN/receipt @ rev 16144
efreet-dev: sync version
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 10:19:52 2014 +0100 (2014-03-26) |
parents | 874b0d62ff7e |
children | f398031ad845 |
rev | line source |
---|---|
pankso@2778 | 1 # SliTaz package receipt |
pankso@2778 | 2 |
pankso@2778 | 3 PACKAGE="locale-zh_CN" |
al@14908 | 4 VERSION="4.1" |
pankso@2778 | 5 CATEGORY="system-tools" |
pankso@2778 | 6 SHORT_DESC="Chinese Simplified locale pack." |
lufeng369@7377 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15604 | 8 LICENSE="GPL3" |
al@14636 | 9 WEB_SITE="http://www.slitaz.org/" |
al@14636 | 10 |
al@14908 | 11 WANTED="glibc slitaz-i18n xorg-libX11" |
lufeng369@7377 | 12 DEPENDS="glibc-base wqy-microhei" |
pankso@2778 | 13 |
pankso@2778 | 14 LOCALE="zh_CN" |
pankso@2778 | 15 |
pankso@2778 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2778 | 17 genpkg_rules() |
pankso@2778 | 18 { |
al@14636 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
al@14636 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@14908 | 21 get_locale |
lufeng369@7377 | 22 |
lufeng369@7377 | 23 GCONV_MODULES=" |
al@14908 | 24 BIG5.so GBBIG5.so GBGBK.so |
al@14908 | 25 UTF-32.so GB18030.so EUC-CN.so |
al@14908 | 26 GBK.so UTF-7.so libGB.so" |
lufeng369@7377 | 27 mkdir -p $fs/usr/bin |
lufeng369@7377 | 28 mkdir -p $fs/usr/lib/gconv |
lufeng369@7377 | 29 |
lufeng369@7377 | 30 cp /usr/bin/iconv $fs/usr/bin |
lufeng369@7377 | 31 for i in $GCONV_MODULES; do |
al@14908 | 32 cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv |
lufeng369@7377 | 33 done |
pankso@2778 | 34 } |
pankso@10739 | 35 |
lufeng369@7377 | 36 post_install() |
lufeng369@7377 | 37 { |
slaxemulator@10841 | 38 if [ -z "$1" ]; then |
slaxemulator@10841 | 39 echo LANG=zh_CN.UTF-8 > /etc/locale.conf |
slaxemulator@10841 | 40 echo Asia/Shanghai > /etc/TZ |
slaxemulator@10841 | 41 export TZ=Asia/Shanghai |
slaxemulator@10841 | 42 hwclock --hctosys |
slaxemulator@10841 | 43 fi |
lufeng369@7377 | 44 } |
pankso@10739 | 45 |
pankso@2778 | 46 # Back to C if it's the last used locale. |
pankso@2778 | 47 post_remove() |
pankso@2778 | 48 { |
al@14908 | 49 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf |
pankso@2778 | 50 } |