wok annotate locale-zh_TW/receipt @ rev 14503

Add get-litecoin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 11 23:41:18 2013 +0200 (2013-05-11)
parents ee88cfdf14a2
children 919b102812ab
rev   line source
pankso@2778 1 # SliTaz package receipt
pankso@2778 2
pankso@2778 3 PACKAGE="locale-zh_TW"
pankso@10739 4 VERSION="4.0"
pankso@2778 5 CATEGORY="system-tools"
pankso@2778 6 SHORT_DESC="Chinese Traditional locale pack."
pankso@2778 7 MAINTAINER="pankso@slitaz.org"
pankso@2778 8 DEPENDS="glibc-base pcf-uming"
pankso@2778 9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
pankso@2778 10 WEB_SITE="http://www.slitaz.org/"
pascal@11854 11 WANTED="slitaz-i18n"
pankso@2778 12
pankso@2778 13 LOCALE="zh_TW"
pankso@2778 14 LOCALEDEF="zh_TW"
pankso@2778 15 CHARMAP="UTF-8"
pankso@2778 16
pankso@2778 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2778 18 # Genereted locale files are in /usr/lib/locale.
pankso@2778 19 genpkg_rules()
pankso@2778 20 {
slaxemulator@9701 21 . $WOK/slitaz-i18n/stuff/locale-pack.functions
slaxemulator@9701 22 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@4855 23 mk_locale_dir
pankso@4855 24 get_slitaz_messages
pankso@4855 25 get_core_messages
pankso@10778 26 # Pregenerate locale file so we dont need glibc-locale as dep.
slaxemulator@8935 27 mkdir -p $fs/usr/lib/locale
pankso@4885 28 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@2778 29 }
pankso@2778 30
pankso@2778 31 # Back to C if it's the last used locale.
pankso@2778 32 post_remove()
pankso@2778 33 {
pankso@2778 34 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2778 35 echo "LANG=C" > /etc/locale.conf
pankso@2778 36 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2778 37 fi
pankso@10778 38 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@2778 39 }