wok-6.x view locale-zh_TW/receipt @ rev 11854

locale*: update WANTED
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 11:20:24 2012 +0100 (2012-02-27)
parents ee88cfdf14a2
children 919b102812ab
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_TW"
4 VERSION="4.0"
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/"
11 WANTED="slitaz-i18n"
13 LOCALE="zh_TW"
14 LOCALEDEF="zh_TW"
15 CHARMAP="UTF-8"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 # Genereted locale files are in /usr/lib/locale.
19 genpkg_rules()
20 {
21 . $WOK/slitaz-i18n/stuff/locale-pack.functions
22 . $WOK/slitaz-i18n/stuff/locale-pack.conf
23 mk_locale_dir
24 get_slitaz_messages
25 get_core_messages
26 # Pregenerate locale file so we dont need glibc-locale as dep.
27 mkdir -p $fs/usr/lib/locale
28 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
29 }
31 # Back to C if it's the last used locale.
32 post_remove()
33 {
34 if grep -q $LOCALEDEF /etc/locale.conf; then
35 echo "LANG=C" > /etc/locale.conf
36 echo "LC_ALL=C" >> /etc/locale.conf
37 fi
38 rm -rf /usr/lib/locale/$LOCALEDEF
39 }