wok-next annotate locale-zh_CN/receipt @ rev 17899
Up: tazpkg (763): fix search.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 03 15:53:11 2015 +0300 (2015-04-03) |
parents | c667db027c32 |
children | ec332cdcdbc1 |
rev | line source |
---|---|
pankso@2778 | 1 # SliTaz package receipt |
pankso@2778 | 2 |
pankso@2778 | 3 PACKAGE="locale-zh_CN" |
al@16591 | 4 VERSION="4.2" |
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@17402 | 10 HOST_ARCH="i486 arm" |
al@14636 | 11 |
al@14908 | 12 WANTED="glibc slitaz-i18n xorg-libX11" |
lufeng369@7377 | 13 DEPENDS="glibc-base wqy-microhei" |
pankso@2778 | 14 |
pankso@2778 | 15 LOCALE="zh_CN" |
al@16591 | 16 LOCALE_DEPENDS="iso14651_t1_pinyin" # for zh_CN |
al@16591 | 17 KB_FLAGS="" |
al@16591 | 18 GCONV="EUC-CN libGB GBK" |
pankso@2778 | 19 |
pankso@2778 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2778 | 21 genpkg_rules() |
pankso@2778 | 22 { |
al@14636 | 23 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
al@14636 | 24 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@14908 | 25 get_locale |
lufeng369@7377 | 26 |
al@16591 | 27 # do really zh_CN locale need this? |
al@16591 | 28 #GCONV_MODULES=" |
al@16591 | 29 # BIG5.so GBBIG5.so GBGBK.so |
al@16591 | 30 # UTF-32.so GB18030.so EUC-CN.so |
al@16591 | 31 # GBK.so UTF-7.so libGB.so" |
al@16591 | 32 #mkdir -p $fs/usr/bin |
al@16591 | 33 #mkdir -p $fs/usr/lib/gconv |
al@16451 | 34 |
al@16591 | 35 #cp /usr/bin/iconv $fs/usr/bin |
al@16591 | 36 #for i in $GCONV_MODULES; do |
al@16591 | 37 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv |
al@16591 | 38 #done |
pankso@2778 | 39 } |
pankso@10739 | 40 |
lufeng369@7377 | 41 post_install() |
lufeng369@7377 | 42 { |
slaxemulator@10841 | 43 if [ -z "$1" ]; then |
slaxemulator@10841 | 44 echo LANG=zh_CN.UTF-8 > /etc/locale.conf |
slaxemulator@10841 | 45 echo Asia/Shanghai > /etc/TZ |
slaxemulator@10841 | 46 export TZ=Asia/Shanghai |
slaxemulator@10841 | 47 hwclock --hctosys |
slaxemulator@10841 | 48 fi |
lufeng369@7377 | 49 } |
pankso@10739 | 50 |
pankso@2778 | 51 # Back to C if it's the last used locale. |
pankso@2778 | 52 post_remove() |
pankso@2778 | 53 { |
al@14908 | 54 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf |
pankso@2778 | 55 } |