wok annotate locale-fr/receipt @ rev 3087
Add slitaz-i18n (provide script and conf to build languages pack) + clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 16 02:25:40 2009 +0200 (2009-05-16) |
parents | f3f6bcae6367 |
children | b584b0d0bbb4 |
rev | line source |
---|---|
pankso@2892 | 1 # SliTaz package receipt |
pankso@2892 | 2 |
pankso@2892 | 3 PACKAGE="locale-fr" |
pankso@2892 | 4 VERSION="2.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@3087 | 12 # Source slitaz-i18n files from the wok. |
pankso@3087 | 13 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@2892 | 14 # French messages are directly include in all packages by tazwok. |
pankso@2892 | 15 CORE_PKGS="" |
pankso@2892 | 16 |
pankso@2892 | 17 LOCALE="fr" |
pankso@2892 | 18 LOCALEDEF="fr_FR" |
pankso@2892 | 19 CHARMAP="ISO-8859-1" |
pankso@2892 | 20 |
pankso@2892 | 21 # Rules to configure and make the package. |
pankso@2892 | 22 compile_rules() |
pankso@2892 | 23 { |
pankso@2892 | 24 # Ensure packages are built. |
pankso@2892 | 25 for pkg in $CORE_PKGS |
pankso@2892 | 26 do |
pankso@2892 | 27 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pankso@2892 | 28 done |
pankso@2892 | 29 } |
pankso@2892 | 30 |
pankso@2892 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2892 | 32 genpkg_rules() |
pankso@3087 | 33 { |
pankso@2892 | 34 PKG_NAME="$PACKAGE" |
pankso@2892 | 35 PKG_VERS="$VERSION" |
pankso@3087 | 36 mk_locale_dir |
pankso@3087 | 37 get_slitaz_messages |
pankso@3087 | 38 get_core_messages |
pankso@2892 | 39 PACKAGE="$PKG_NAME" |
pankso@2892 | 40 VERSION="$PKG_VERS" |
pankso@2892 | 41 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@2892 | 42 } |
pankso@2892 | 43 |
pankso@2892 | 44 # Back to C if it's the last used locale. |
pankso@2892 | 45 post_remove() |
pankso@2892 | 46 { |
pankso@2892 | 47 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2892 | 48 echo "LANG=C" > /etc/locale.conf |
pankso@2892 | 49 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2892 | 50 fi |
pankso@2892 | 51 } |