wok-6.x view locale-zh_TW/receipt @ rev 6071
Move puzzles to wok
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Aug 24 12:02:37 2010 +0200 (2010-08-24) |
parents | d42b38d61b43 |
children | acd94c1e1529 |
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 . $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 # Genereted locale files are in /usr/lib/locale.
29 genpkg_rules()
30 {
31 . $WOK/slitaz-i18n/stuff/locale-pack.functions
32 . $WOK/slitaz-i18n/stuff/locale-pack.conf
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 # Pregenerate locale file si we dont need glibc-locale as dep.
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 }