wok view locale-zh_TW/receipt @ rev 4855

glibc-base and locale pack: switch to UTF-8
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 02 22:17:52 2010 +0100 (2010-02-02)
parents f3f6bcae6367
children 2196fa1dd4af
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_TW"
4 VERSION="1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Chinese Traditional locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base pcf-uming"
9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
10 WEB_SITE="http://www.slitaz.org/"
12 LOCALE="zh_TW"
13 LOCALEDEF="zh_TW"
14 CHARMAP="UTF-8"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Ensure packages are built.
20 for pkg in $CORE_PKGS
21 do
22 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
23 done
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 # Genereted locale files are in /usr/lib/locale.
28 genpkg_rules()
29 {
30 PKG_NAME="$PACKAGE"
31 PKG_VERS="$VERSION"
32 mk_locale_dir
33 get_slitaz_messages
34 get_core_messages
35 PACKAGE="$PKG_NAME"
36 VERSION="$PKG_VERS"
37 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8
38 }
40 # Back to C if it's the last used locale.
41 post_remove()
42 {
43 if grep -q $LOCALEDEF /etc/locale.conf; then
44 echo "LANG=C" > /etc/locale.conf
45 echo "LC_ALL=C" >> /etc/locale.conf
46 fi
47 }