wok view locale-zh_TW/receipt @ rev 14641
hg merge
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 02 16:44:25 2013 +0000 (2013-06-02) |
parents | bcfe199cef3f |
children | 874b0d62ff7e |
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 WEB_SITE="http://www.slitaz.org/"
10 WANTED="slitaz-i18n xorg-libX11"
11 DEPENDS="glibc-base pcf-uming"
12 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
14 LOCALE="zh_TW"
15 LOCALEDEF="zh_TW"
16 CHARMAP="UTF-8"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 # Genereted locale files are in /usr/lib/locale.
20 genpkg_rules()
21 {
22 . $WOK/slitaz-i18n/stuff/locale-pack.functions
23 . $WOK/slitaz-i18n/stuff/locale-pack.conf
24 mk_locale_dir
25 get_slitaz_messages
26 get_core_messages
27 get_x11_locale
28 # Pregenerate locale file so we dont need glibc-locale as dep.
29 mkdir -p $fs/usr/lib/locale
30 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
31 }
33 # Back to C if it's the last used locale.
34 post_remove()
35 {
36 if grep -q $LOCALEDEF /etc/locale.conf; then
37 echo "LANG=C" > /etc/locale.conf
38 echo "LC_ALL=C" >> /etc/locale.conf
39 fi
40 rm -rf /usr/lib/locale/$LOCALEDEF
41 }