wok-current view locale-zh_CN/receipt @ rev 6926
Up: git to 1.7.3.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 22 17:13:31 2010 +0000 (2010-10-22) |
parents | 28253bd3176d |
children | 23b733bbc00a |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_CN"
4 VERSION="1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Chinese Simplified locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base wqy-bitmapfont"
9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
10 WEB_SITE="http://www.slitaz.org/"
12 CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \
13 glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad"
15 LOCALE="zh_CN"
16 LOCALEDEF="zh_CN"
17 CHARMAP="UTF-8"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Ensure packages are built.
23 for pkg in $CORE_PKGS
24 do
25 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
26 done
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 # Genereted locale files are in /usr/lib/locale.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
34 PKG_NAME="$PACKAGE"
35 PKG_VERS="$VERSION"
36 mk_locale_dir
37 get_slitaz_messages
38 get_core_messages
39 PACKAGE="$PKG_NAME"
40 VERSION="$PKG_VERS"
41 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8
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 }