wok-6.x annotate locale-ru/receipt @ rev 12985
Move from undigest enna gnaughty open-cobol
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 02 17:09:50 2012 +0200 (2012-06-02) |
parents | ee88cfdf14a2 |
children | 919b102812ab |
rev | line source |
---|---|
pankso@529 | 1 # SliTaz package receipt |
pankso@529 | 2 |
pankso@529 | 3 PACKAGE="locale-ru" |
pankso@10739 | 4 VERSION="4.0" |
pankso@529 | 5 CATEGORY="system-tools" |
pankso@529 | 6 SHORT_DESC="Russian locale pack." |
pankso@529 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@529 | 8 DEPENDS="glibc-base" |
pankso@3087 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@529 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@11854 | 11 WANTED="slitaz-i18n" |
pankso@529 | 12 |
pankso@529 | 13 LOCALE="ru" |
pankso@529 | 14 LOCALEDEF="ru_RU" |
pankso@2757 | 15 CHARMAP="UTF-8" |
pankso@529 | 16 |
pankso@529 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@529 | 18 genpkg_rules() |
pankso@3091 | 19 { |
slaxemulator@9701 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 21 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@3087 | 22 mk_locale_dir |
pankso@3087 | 23 get_slitaz_messages |
pankso@3087 | 24 get_core_messages |
pankso@529 | 25 } |
pankso@529 | 26 |
pankso@529 | 27 # Back to C if it's the last used locale. |
pankso@529 | 28 post_remove() |
pankso@529 | 29 { |
pankso@529 | 30 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@529 | 31 echo "LANG=C" > /etc/locale.conf |
pankso@529 | 32 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@529 | 33 fi |
pankso@529 | 34 } |