wok diff locale-zh_TW/receipt @ rev 15375
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 18 19:43:55 2013 +0000 (2013-10-18) |
parents | 919b102812ab |
children | 48d3d669a814 |
line diff
1.1 --- a/locale-zh_TW/receipt Sun Jun 02 12:09:39 2013 +0000 1.2 +++ b/locale-zh_TW/receipt Fri Oct 18 19:43:55 2013 +0000 1.3 @@ -1,41 +1,27 @@ 1.4 # SliTaz package receipt 1.5 1.6 PACKAGE="locale-zh_TW" 1.7 -VERSION="4.0" 1.8 +VERSION="4.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Chinese Traditional locale pack." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 WEB_SITE="http://www.slitaz.org/" 1.13 1.14 -WANTED="slitaz-i18n xorg-libX11" 1.15 +WANTED="glibc slitaz-i18n xorg-libX11" 1.16 DEPENDS="glibc-base pcf-uming" 1.17 -BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 1.18 1.19 LOCALE="zh_TW" 1.20 -LOCALEDEF="zh_TW" 1.21 -CHARMAP="UTF-8" 1.22 1.23 # Rules to gen a SliTaz package suitable for Tazpkg. 1.24 -# Genereted locale files are in /usr/lib/locale. 1.25 genpkg_rules() 1.26 { 1.27 . $WOK/slitaz-i18n/stuff/locale-pack.functions 1.28 . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.29 - mk_locale_dir 1.30 - get_slitaz_messages 1.31 - get_core_messages 1.32 - get_x11_locale 1.33 - # Pregenerate locale file so we dont need glibc-locale as dep. 1.34 - mkdir -p $fs/usr/lib/locale 1.35 - localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.36 + get_locale 1.37 } 1.38 1.39 # Back to C if it's the last used locale. 1.40 post_remove() 1.41 { 1.42 - if grep -q $LOCALEDEF /etc/locale.conf; then 1.43 - echo "LANG=C" > /etc/locale.conf 1.44 - echo "LC_ALL=C" >> /etc/locale.conf 1.45 - fi 1.46 - rm -rf /usr/lib/locale/$LOCALEDEF 1.47 + echo -e "LANG=C\nLC_ALL=C" > /etc/locale.conf 1.48 }