wok-current annotate locale-zh_TW/receipt @ rev 14639
Fixed all xorg receipts to use SOURCE variable again. Please use SOURCE variable Aleksej.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jun 02 09:36:07 2013 +0000 (2013-06-02) |
parents | bcfe199cef3f |
children | 874b0d62ff7e |
rev | line source |
---|---|
pankso@2778 | 1 # SliTaz package receipt |
pankso@2778 | 2 |
pankso@2778 | 3 PACKAGE="locale-zh_TW" |
pankso@10739 | 4 VERSION="4.0" |
pankso@2778 | 5 CATEGORY="system-tools" |
pankso@2778 | 6 SHORT_DESC="Chinese Traditional locale pack." |
pankso@2778 | 7 MAINTAINER="pankso@slitaz.org" |
al@14636 | 8 WEB_SITE="http://www.slitaz.org/" |
al@14636 | 9 |
al@14636 | 10 WANTED="slitaz-i18n xorg-libX11" |
pankso@2778 | 11 DEPENDS="glibc-base pcf-uming" |
pankso@2778 | 12 BUILD_DEPENDS="glibc glibc-locale xorg-libX11" |
pankso@2778 | 13 |
pankso@2778 | 14 LOCALE="zh_TW" |
pankso@2778 | 15 LOCALEDEF="zh_TW" |
pankso@2778 | 16 CHARMAP="UTF-8" |
pankso@2778 | 17 |
pankso@2778 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2778 | 19 # Genereted locale files are in /usr/lib/locale. |
pankso@2778 | 20 genpkg_rules() |
pankso@2778 | 21 { |
slaxemulator@9701 | 22 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 23 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@4855 | 24 mk_locale_dir |
pankso@4855 | 25 get_slitaz_messages |
pankso@4855 | 26 get_core_messages |
al@14636 | 27 get_x11_locale |
pankso@10778 | 28 # Pregenerate locale file so we dont need glibc-locale as dep. |
slaxemulator@8935 | 29 mkdir -p $fs/usr/lib/locale |
pankso@4885 | 30 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@2778 | 31 } |
pankso@2778 | 32 |
pankso@2778 | 33 # Back to C if it's the last used locale. |
pankso@2778 | 34 post_remove() |
pankso@2778 | 35 { |
pankso@2778 | 36 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2778 | 37 echo "LANG=C" > /etc/locale.conf |
pankso@2778 | 38 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2778 | 39 fi |
pankso@10778 | 40 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@2778 | 41 } |