wok-current annotate locale-zh_CN/receipt @ rev 22481

updated ansible (1.5.3 -> 2.9.2)
author Hans-G?nter Theisgen
date Mon Dec 30 14:41:15 2019 +0100 (2019-12-30)
parents a52ffca61a1d
children 5926178cd6fa
rev   line source
pankso@2778 1 # SliTaz package receipt
pankso@2778 2
pankso@2778 3 PACKAGE="locale-zh_CN"
al@18168 4 VERSION="5.0"
al@19175 5 CATEGORY="localization"
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@18168 12 WANTED="glibc slitaz-i18n xorg-libX11 flag-icons tzdata"
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@18168 17 KBD=""
al@18168 18 KB_FLAGS="CN:cn"
al@18168 19 GCONV="EUC-CN GBK GB18030 libGB"
pankso@2778 20
pankso@2778 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2778 22 genpkg_rules()
pankso@2778 23 {
al@14636 24 . $WOK/slitaz-i18n/stuff/locale-pack.functions
al@14636 25 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@14908 26 get_locale
lufeng369@7377 27
al@16591 28 # do really zh_CN locale need this?
al@16591 29 #GCONV_MODULES="
al@16591 30 # BIG5.so GBBIG5.so GBGBK.so
al@16591 31 # UTF-32.so GB18030.so EUC-CN.so
al@16591 32 # GBK.so UTF-7.so libGB.so"
al@16591 33 #mkdir -p $fs/usr/bin
al@16591 34 #mkdir -p $fs/usr/lib/gconv
al@16451 35
al@16591 36 #cp /usr/bin/iconv $fs/usr/bin
al@16591 37 #for i in $GCONV_MODULES; do
al@16591 38 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
al@16591 39 #done
pankso@2778 40 }
pankso@10739 41
lufeng369@7377 42 post_install()
lufeng369@7377 43 {
slaxemulator@10841 44 if [ -z "$1" ]; then
slaxemulator@10841 45 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
slaxemulator@10841 46 echo Asia/Shanghai > /etc/TZ
slaxemulator@10841 47 export TZ=Asia/Shanghai
al@19618 48 [ -e /dev/misc/rtc ] && hwclock --hctosys
slaxemulator@10841 49 fi
al@19618 50 :
lufeng369@7377 51 }
pankso@10739 52
pankso@2778 53 # Back to C if it's the last used locale.
pankso@2778 54 post_remove()
pankso@2778 55 {
pascal@22367 56 grep -qs =$LOCALE /etc/locale.conf &&
al@14908 57 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
pankso@2778 58 }