wok-6.x view locale-fr/receipt @ rev 4818

Fix: Remove python dependency on GDB.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jan 20 00:51:39 2010 +0100 (2010-01-20)
parents a51ace1961b2
children d42b38d61b43
line source
1 # SliTaz package receipt
3 PACKAGE="locale-fr"
4 VERSION="2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="French locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
10 WEB_SITE="http://www.slitaz.org/"
12 LOCALE="fr"
13 LOCALEDEF="fr_FR"
14 CHARMAP="ISO-8859-1"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # French messages are directly include in all packages by tazwok.
20 CORE_PKGS=""
21 # Ensure packages are built.
22 for pkg in $CORE_PKGS
23 do
24 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
25 done
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 . $WOK/slitaz-i18n/stuff/locale-pack.functions
32 CORE_PKGS=""
33 PKG_NAME="$PACKAGE"
34 PKG_VERS="$VERSION"
35 mk_locale_dir
36 get_slitaz_messages
37 get_core_messages
38 PACKAGE="$PKG_NAME"
39 VERSION="$PKG_VERS"
40 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
41 }
43 # Back to C if it's the last used locale.
44 post_remove()
45 {
46 if grep -q $LOCALEDEF /etc/locale.conf; then
47 echo "LANG=C" > /etc/locale.conf
48 echo "LC_ALL=C" >> /etc/locale.conf
49 fi
50 }