wok-6.x annotate locale-cs/receipt @ rev 14907
lxinput: up 0.3.2; openbox: fix pipe menu display; slitaz-i18n: add missing core packages; tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 02 15:13:41 2013 +0300 (2013-08-02) |
parents | bcfe199cef3f |
children | 874b0d62ff7e |
rev | line source |
---|---|
pankso@529 | 1 # SliTaz package receipt |
pankso@529 | 2 |
pankso@529 | 3 PACKAGE="locale-cs" |
pankso@10739 | 4 VERSION="4.0" |
pankso@529 | 5 CATEGORY="system-tools" |
pankso@529 | 6 SHORT_DESC="Czech locale pack." |
pankso@529 | 7 MAINTAINER="pankso@slitaz.org" |
al@14907 | 8 WEB_SITE="http://www.slitaz.org/" |
al@14907 | 9 |
al@14907 | 10 WANTED="slitaz-i18n" |
pankso@529 | 11 DEPENDS="glibc-base" |
pankso@3087 | 12 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@529 | 13 |
pankso@529 | 14 LOCALE="cs" |
pankso@529 | 15 LOCALEDEF="cs_CZ" |
pankso@4855 | 16 CHARMAP="UTF-8" |
pankso@529 | 17 |
pankso@529 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@529 | 19 genpkg_rules() |
pankso@3091 | 20 { |
slaxemulator@9701 | 21 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 22 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@3087 | 23 mk_locale_dir |
pankso@3087 | 24 get_slitaz_messages |
pankso@3087 | 25 get_core_messages |
pankso@10778 | 26 # Pregenerate locale file so we dont need glibc-locale as dep. |
pankso@10778 | 27 mkdir -p $fs/usr/lib/locale |
pankso@10778 | 28 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@529 | 29 } |
pankso@529 | 30 |
pankso@529 | 31 # Back to C if it's the last used locale. |
pankso@529 | 32 post_remove() |
pankso@529 | 33 { |
pankso@529 | 34 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@529 | 35 echo "LANG=C" > /etc/locale.conf |
pankso@529 | 36 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@529 | 37 fi |
pankso@10778 | 38 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@529 | 39 } |