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

Remove python-piface* (work only with python3) but add libmcp23s17 + libpifacedigital C library and utility
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 07 17:38:57 2014 +0200 (2014-05-07)
parents c4533f65e171
children cea5a9fa7152
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@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"
al@16591 15 LOCALE_DEPENDS="iso14651_t1_pinyin" # for zh_CN
al@16591 16 KB_FLAGS=""
al@16591 17 GCONV="EUC-CN libGB GBK"
pankso@2778 18
pankso@2778 19 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2778 20 genpkg_rules()
pankso@2778 21 {
al@14636 22 . $WOK/slitaz-i18n/stuff/locale-pack.functions
al@14636 23 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@14908 24 get_locale
lufeng369@7377 25
al@16591 26 # do really zh_CN locale need this?
al@16591 27 #GCONV_MODULES="
al@16591 28 # BIG5.so GBBIG5.so GBGBK.so
al@16591 29 # UTF-32.so GB18030.so EUC-CN.so
al@16591 30 # GBK.so UTF-7.so libGB.so"
al@16591 31 #mkdir -p $fs/usr/bin
al@16591 32 #mkdir -p $fs/usr/lib/gconv
al@16451 33
al@16591 34 #cp /usr/bin/iconv $fs/usr/bin
al@16591 35 #for i in $GCONV_MODULES; do
al@16591 36 # cp $WOK/glibc/install/usr/lib/gconv/$i $fs/usr/lib/gconv
al@16591 37 #done
pankso@2778 38 }
pankso@10739 39
lufeng369@7377 40 post_install()
lufeng369@7377 41 {
slaxemulator@10841 42 if [ -z "$1" ]; then
slaxemulator@10841 43 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
slaxemulator@10841 44 echo Asia/Shanghai > /etc/TZ
slaxemulator@10841 45 export TZ=Asia/Shanghai
slaxemulator@10841 46 hwclock --hctosys
slaxemulator@10841 47 fi
lufeng369@7377 48 }
pankso@10739 49
pankso@2778 50 # Back to C if it's the last used locale.
pankso@2778 51 post_remove()
pankso@2778 52 {
al@14908 53 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf
pankso@2778 54 }