wok-6.x annotate locale-fr/receipt @ rev 10739

locale-*: Up to 4.0 version string, had core pkgs to french pack (we dont have any po file now!) and add nano, mtpaint, midori to all languages pack
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 00:54:30 2011 +0200 (2011-05-30)
parents 7b13b3b4b836
children 6a16e4339314
rev   line source
pankso@2892 1 # SliTaz package receipt
pankso@2892 2
pankso@2892 3 PACKAGE="locale-fr"
pankso@10739 4 VERSION="4.0"
pankso@2892 5 CATEGORY="system-tools"
pankso@2892 6 SHORT_DESC="French locale pack."
pankso@2892 7 MAINTAINER="pankso@slitaz.org"
pankso@2892 8 DEPENDS="glibc-base"
pankso@3087 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
pankso@2892 10 WEB_SITE="http://www.slitaz.org/"
pankso@2892 11
pankso@2892 12 LOCALE="fr"
pankso@2892 13 LOCALEDEF="fr_FR"
pankso@4855 14 CHARMAP="UTF-8"
pankso@2892 15
pankso@2892 16 # Rules to configure and make the package.
pankso@2892 17 compile_rules()
pankso@2892 18 {
pankso@10739 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@2892 20 # Ensure packages are built.
pankso@2892 21 for pkg in $CORE_PKGS
pankso@2892 22 do
pankso@2892 23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
pankso@2892 24 done
pankso@2892 25 }
pankso@2892 26
pankso@2892 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2892 28 genpkg_rules()
pankso@3091 29 {
slaxemulator@9701 30 . $WOK/slitaz-i18n/stuff/locale-pack.functions
pankso@10739 31 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@2892 32 PKG_NAME="$PACKAGE"
pankso@2892 33 PKG_VERS="$VERSION"
pankso@3087 34 mk_locale_dir
pankso@3087 35 get_slitaz_messages
pankso@3087 36 get_core_messages
pankso@2892 37 PACKAGE="$PKG_NAME"
pankso@2892 38 VERSION="$PKG_VERS"
pankso@2892 39 }
pankso@2892 40
pankso@2892 41 # Back to C if it's the last used locale.
pankso@2892 42 post_remove()
pankso@2892 43 {
pankso@2892 44 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2892 45 echo "LANG=C" > /etc/locale.conf
pankso@2892 46 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2892 47 fi
pankso@2892 48 }