wok view locale-zh_TW/receipt @ rev 8899
Up: xfce4-panel to 4.8.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 27 17:34:12 2011 +0000 (2011-02-27) |
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 }