wok-current annotate locale-zh_CN/receipt @ rev 14908
slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Aug 03 17:37:48 2013 +0300 (2013-08-03) |
parents | 919b102812ab |
children | 48d3d669a814 |
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" |
al@14636 | 8 WEB_SITE="http://www.slitaz.org/" |
al@14636 | 9 |
al@14908 | 10 WANTED="glibc slitaz-i18n xorg-libX11" |
lufeng369@7377 | 11 DEPENDS="glibc-base wqy-microhei" |
pankso@2778 | 12 |
pankso@2778 | 13 LOCALE="zh_CN" |
pankso@2778 | 14 |
pankso@2778 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2778 | 16 genpkg_rules() |
pankso@2778 | 17 { |
al@14636 | 18 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
al@14636 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@14908 | 20 get_locale |
lufeng369@7377 | 21 |
lufeng369@7377 | 22 GCONV_MODULES=" |
al@14908 | 23 BIG5.so GBBIG5.so GBGBK.so |
al@14908 | 24 UTF-32.so GB18030.so EUC-CN.so |
al@14908 | 25 GBK.so UTF-7.so libGB.so" |
lufeng369@7377 | 26 mkdir -p $fs/usr/bin |
lufeng369@7377 | 27 mkdir -p $fs/usr/lib/gconv |
lufeng369@7377 | 28 |
lufeng369@7377 | 29 cp /usr/bin/iconv $fs/usr/bin |
lufeng369@7377 | 30 for i in $GCONV_MODULES; do |
al@14908 | 31 cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv |
lufeng369@7377 | 32 done |
pankso@2778 | 33 } |
pankso@10739 | 34 |
lufeng369@7377 | 35 post_install() |
lufeng369@7377 | 36 { |
slaxemulator@10841 | 37 if [ -z "$1" ]; then |
slaxemulator@10841 | 38 echo LANG=zh_CN.UTF-8 > /etc/locale.conf |
slaxemulator@10841 | 39 echo Asia/Shanghai > /etc/TZ |
slaxemulator@10841 | 40 export TZ=Asia/Shanghai |
slaxemulator@10841 | 41 hwclock --hctosys |
slaxemulator@10841 | 42 fi |
lufeng369@7377 | 43 } |
pankso@10739 | 44 |
pankso@2778 | 45 # Back to C if it's the last used locale. |
pankso@2778 | 46 post_remove() |
pankso@2778 | 47 { |
al@14908 | 48 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf |
pankso@2778 | 49 } |