wok-stable view locale-cs/receipt @ rev 536

Security update: rsync (3.0.2) - Potential buffer overflow in the xattr code
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 10 20:53:44 2008 +0200 (2008-04-10)
parents
children 73016cb6e50c
line source
1 # SliTaz package receipt
3 PACKAGE="locale-cs"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Czech locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc"
10 WEB_SITE="http://www.slitaz.org/"
11 SOURCES="glibc"
13 LOCALE="cs"
14 LOCALEDEF="cs_CZ"
15 CHARMAP="ISO-8859-2"
16 #CORE_PKGS="geany leafpad"
17 CORE_PKGS=""
19 GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg
20 PKG_NAME="$PACKAGE"
21 PKG_VERS="$VERSION"
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 # Install files in /usr/lib/locale. UTF-8:
25 # localedef -i $LOCALEDEF -f UTF-8 $root/usr/lib/locale/$LOCALEDEF.utf8
26 #
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/share/i18n/locales
31 # Get the core apps messages.
32 for pkg in $CORE_PKGS
33 do
34 . $WOK/$pkg/receipt
35 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
36 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
37 $fs/usr/share/locale
38 fi
39 done
41 # Glibc locale.
42 cp -a $GLIBC_FILES/usr/share/i18n/locales/$LOCALEDEF \
43 $fs/usr/share/i18n/locales
44 cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale
46 PACKAGE="$PKG_NAME"
47 VERSION="$PKG_VERS"
49 # Gen locale files.
50 mkdir -p $fs/usr/lib/locale
51 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
52 }
54 # Post install to configure default locale.
55 post_install()
56 {
57 local root
58 root=$1
59 # locale.conf
60 if [ -f $root/etc/locale.conf ]; then
61 echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf
62 echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf
63 fi
64 }
66 # Back to C if it's the last used locale.
67 post_remove()
68 {
69 if grep -q $LOCALEDEF /etc/locale.conf; then
70 echo "LANG=C" > /etc/locale.conf
71 echo "LC_ALL=C" >> /etc/locale.conf
72 fi
73 }