wok view 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
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 # Source slitaz-i18n files from the wok.
13 . $WOK/slitaz-i18n/stuff/locale-pack.functions
14 # French messages are directly include in all packages by tazwok.
15 CORE_PKGS=""
17 LOCALE="fr"
18 LOCALEDEF="fr_FR"
19 CHARMAP="ISO-8859-1"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Ensure packages are built.
25 for pkg in $CORE_PKGS
26 do
27 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
28 done
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 PKG_NAME="$PACKAGE"
35 PKG_VERS="$VERSION"
36 mk_locale_dir
37 get_slitaz_messages
38 get_core_messages
39 PACKAGE="$PKG_NAME"
40 VERSION="$PKG_VERS"
41 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
42 }
44 # Back to C if it's the last used locale.
45 post_remove()
46 {
47 if grep -q $LOCALEDEF /etc/locale.conf; then
48 echo "LANG=C" > /etc/locale.conf
49 echo "LC_ALL=C" >> /etc/locale.conf
50 fi
51 }