wok view locale-de/receipt @ rev 3207

added centerim console based IM
author Allan Pinto <allan316@gmail.com>
date Thu May 28 12:03:29 2009 +0000 (2009-05-28)
parents a51ace1961b2
children d42b38d61b43
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 LOCALE="de"
13 LOCALEDEF="de_DE"
14 CHARMAP="ISO-8859-1"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 . $WOK/slitaz-i18n/stuff/locale-pack.conf
20 # Ensure packages are built.
21 for pkg in $CORE_PKGS
22 do
23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
24 done
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 . $WOK/slitaz-i18n/stuff/locale-pack.functions
31 . $WOK/slitaz-i18n/stuff/locale-pack.conf
32 PKG_NAME="$PACKAGE"
33 PKG_VERS="$VERSION"
34 mk_locale_dir
35 get_slitaz_messages
36 get_core_messages
37 PACKAGE="$PKG_NAME"
38 VERSION="$PKG_VERS"
39 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
40 }
42 # Back to C if it's the last used locale.
43 post_remove()
44 {
45 if grep -q $LOCALEDEF /etc/locale.conf; then
46 echo "LANG=C" > /etc/locale.conf
47 echo "LC_ALL=C" >> /etc/locale.conf
48 fi
49 }