wok view locale-es/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 d2be5bd5d83e
children b584b0d0bbb4
line source
1 # SliTaz package receipt
3 PACKAGE="locale-es"
4 VERSION="1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Spanish 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 . $WOK/slitaz-i18n/stuff/locale-pack.conf
16 LOCALE="es"
17 LOCALEDEF="es_ES"
18 CHARMAP="ISO-8859-1"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Ensure packages are built.
24 for pkg in $CORE_PKGS
25 do
26 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
27 done
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
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 }