wok-current view 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
line source
1 # SliTaz package receipt
3 PACKAGE="locale-cs"
4 VERSION="4.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Czech locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://www.slitaz.org/"
10 WANTED="slitaz-i18n"
11 DEPENDS="glibc-base"
12 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
14 LOCALE="cs"
15 LOCALEDEF="cs_CZ"
16 CHARMAP="UTF-8"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
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 }