wok-current view locale-de/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-de"
4 VERSION="2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="German 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="de"
17 LOCALEDEF="de_DE"
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 }