wok-6.x annotate locale-zh_TW/receipt @ rev 22367
fix locale-* post_remove
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 22 12:30:25 2019 +0100 (2019-11-22) |
parents | a52ffca61a1d |
children |
rev | line source |
---|---|
pankso@2778 | 1 # SliTaz package receipt |
pankso@2778 | 2 |
pankso@2778 | 3 PACKAGE="locale-zh_TW" |
al@18168 | 4 VERSION="5.0" |
al@19175 | 5 CATEGORY="localization" |
pankso@2778 | 6 SHORT_DESC="Chinese Traditional locale pack." |
pankso@2778 | 7 MAINTAINER="pankso@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" |
pankso@2778 | 13 DEPENDS="glibc-base pcf-uming" |
pankso@2778 | 14 |
pankso@2778 | 15 LOCALE="zh_TW" |
al@16591 | 16 LOCALE_DEPENDS="zh_CN" # for zh_TW |
al@18168 | 17 KBD="" |
al@18168 | 18 KB_FLAGS="TW:tw" |
al@18168 | 19 GCONV="BIG5 EUC-TW libCNS" |
pankso@2778 | 20 |
pankso@2778 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2778 | 22 genpkg_rules() |
pankso@2778 | 23 { |
slaxemulator@9701 | 24 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 25 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@14908 | 26 get_locale |
pankso@2778 | 27 } |
pankso@2778 | 28 |
pankso@2778 | 29 # Back to C if it's the last used locale. |
pankso@2778 | 30 post_remove() |
pankso@2778 | 31 { |
pascal@22367 | 32 grep -qs =$LOCALE /etc/locale.conf && |
al@14908 | 33 echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf |
pankso@2778 | 34 } |