wok-current annotate locale-fr/receipt @ rev 5643
Up lguest 2.6.24
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 28 22:15:48 2010 +0200 (2010-05-28) |
parents | d42b38d61b43 |
children | bb5ef46effcc |
rev | line source |
---|---|
pankso@2892 | 1 # SliTaz package receipt |
pankso@2892 | 2 |
pankso@2892 | 3 PACKAGE="locale-fr" |
pankso@5136 | 4 VERSION="2.1" |
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@3091 | 19 # French messages are directly include in all packages by tazwok. |
pankso@3091 | 20 CORE_PKGS="" |
pankso@2892 | 21 # Ensure packages are built. |
pankso@2892 | 22 for pkg in $CORE_PKGS |
pankso@2892 | 23 do |
pankso@2892 | 24 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pankso@2892 | 25 done |
pankso@2892 | 26 } |
pankso@2892 | 27 |
pankso@2892 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2892 | 29 genpkg_rules() |
pankso@3091 | 30 { |
pankso@3091 | 31 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@3091 | 32 CORE_PKGS="" |
pankso@2892 | 33 PKG_NAME="$PACKAGE" |
pankso@2892 | 34 PKG_VERS="$VERSION" |
pankso@3087 | 35 mk_locale_dir |
pankso@3087 | 36 get_slitaz_messages |
pankso@3087 | 37 get_core_messages |
pankso@4855 | 38 ver=`grep ^VERSION $WOK/glibc/receipt | cut -d "\"" -f 2` |
pankso@4855 | 39 cp -a $WOK/glibc/glibc-$ver/_pkg/usr/share/locale/$LOCALE/* \ |
pankso@4855 | 40 $fs/usr/share/locale/$LOCALE |
pankso@2892 | 41 PACKAGE="$PKG_NAME" |
pankso@2892 | 42 VERSION="$PKG_VERS" |
pankso@2892 | 43 } |
pankso@2892 | 44 |
pankso@2892 | 45 # Back to C if it's the last used locale. |
pankso@2892 | 46 post_remove() |
pankso@2892 | 47 { |
pankso@2892 | 48 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2892 | 49 echo "LANG=C" > /etc/locale.conf |
pankso@2892 | 50 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2892 | 51 fi |
pankso@2892 | 52 } |