wok-next annotate locale-es/receipt @ rev 10742
Up: slitaz-doc (4.2) - New style and include all doc (no more in locale pack)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 02:35:50 2011 +0200 (2011-05-30) |
parents | e63d22f12936 |
children | ee88cfdf14a2 |
rev | line source |
---|---|
pankso@529 | 1 # SliTaz package receipt |
pankso@529 | 2 |
pankso@529 | 3 PACKAGE="locale-es" |
pankso@10739 | 4 VERSION="4.0" |
pankso@529 | 5 CATEGORY="system-tools" |
pankso@529 | 6 SHORT_DESC="Spanish 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/" |
pankso@529 | 11 |
pankso@529 | 12 LOCALE="es" |
pankso@529 | 13 LOCALEDEF="es_ES" |
pankso@4855 | 14 CHARMAP="UTF-8" |
pankso@529 | 15 |
pankso@529 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@529 | 17 genpkg_rules() |
pankso@3091 | 18 { |
slaxemulator@9701 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2702 | 21 PKG_NAME="$PACKAGE" |
pankso@2702 | 22 PKG_VERS="$VERSION" |
pankso@3087 | 23 mk_locale_dir |
pankso@3087 | 24 get_slitaz_messages |
pankso@3087 | 25 get_core_messages |
pankso@529 | 26 PACKAGE="$PKG_NAME" |
pankso@529 | 27 VERSION="$PKG_VERS" |
pankso@529 | 28 } |
pankso@529 | 29 |
pankso@529 | 30 # Back to C if it's the last used locale. |
pankso@529 | 31 post_remove() |
pankso@529 | 32 { |
pankso@529 | 33 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@529 | 34 echo "LANG=C" > /etc/locale.conf |
pankso@529 | 35 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@529 | 36 fi |
pankso@529 | 37 } |