wok-4.x rev 529
Add glibc-locale + locale pack: es, cs, ru
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 09 16:08:07 2008 +0200 (2008-04-09) |
parents | c066c4f6872f |
children | 864dfe91a1df |
files | glibc-locale/receipt locale-cs/receipt locale-es/receipt locale-ru/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/glibc-locale/receipt Wed Apr 09 16:08:07 2008 +0200 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="glibc-locale" 1.7 +VERSION="2.7" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="The GNU C libraries locale files (see also locale-*)." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="glibc-base locale-cs locale-es locale-ru" 1.12 +WANTED="glibc" 1.13 +WEB_SITE="http://www.gnu.org/software/libc/" 1.14 +SOURCES="glibc" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +# 1.18 +# This package provide glibc locale files and utility. 1.19 +# 1.20 +genpkg_rules() 1.21 +{ 1.22 + mkdir -p $fs/usr/share $fs/usr/lib $fs/usr/bin 1.23 + 1.24 + cp -a $_pkg/usr/lib/gconv $fs/usr/lib 1.25 + cp -a $_pkg/usr/share/locale $fs/usr/share 1.26 + cp -a $_pkg/usr/share/i18n $fs/usr/share 1.27 + 1.28 + # Utilities and tools 1.29 + cp -a $_pkg/usr/bin/localedef $fs/usr/bin 1.30 + cp -a $_pkg/usr/bin/iconv $fs/usr/bin 1.31 + cp -a $_pkg/usr/bin/tzselect $fs/usr/bin 1.32 + 1.33 + # Rm base files. 1.34 + echo -n "Removing all base files..." 1.35 + for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list` 1.36 + do 1.37 + rm -f ${fs}$file 1.38 + done 1.39 + status 1.40 + 1.41 + # Rm files provided by locale-pack. 1.42 + 1.43 + # cs 1.44 + rm -f $fs/usr/share/i18n/locales/cs_CZ 1.45 + rm -rf $fs/usr/share/locale/cs 1.46 + # es 1.47 + rm -f $fs/usr/share/i18n/locales/es_ES 1.48 + rm -rf $fs/usr/share/locale/es 1.49 + # ru 1.50 + rm -f $fs/usr/share/i18n/locales/ru_RU 1.51 + rm -rf $fs/usr/share/locale/ru 1.52 + rm -f $fs/usr/share/i18n/charmaps/KOI8-RU.gz 1.53 + rm -f $fs/usr/lib/gconv/KOI8-RU.so 1.54 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/locale-cs/receipt Wed Apr 09 16:08:07 2008 +0200 2.3 @@ -0,0 +1,73 @@ 2.4 +# SliTaz package receipt 2.5 + 2.6 +PACKAGE="locale-cs" 2.7 +VERSION="1.0" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Czech locale pack." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +DEPENDS="glibc-base" 2.12 +BUILD_DEPENDS="glibc" 2.13 +WEB_SITE="http://www.slitaz.org/" 2.14 +SOURCES="glibc" 2.15 + 2.16 +LOCALE="cs" 2.17 +LOCALEDEF="cs_CZ" 2.18 +CHARMAP="ISO-8859-2" 2.19 +#CORE_PKGS="geany leafpad" 2.20 +CORE_PKGS="" 2.21 + 2.22 +GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 2.23 +PKG_NAME="$PACKAGE" 2.24 +PKG_VERS="$VERSION" 2.25 + 2.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.27 +# Install files in /usr/lib/locale. UTF-8: 2.28 +# localedef -i $LOCALEDEF -f UTF-8 $root/usr/lib/locale/$LOCALEDEF.utf8 2.29 +# 2.30 +genpkg_rules() 2.31 +{ 2.32 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/share/i18n/locales 2.33 + 2.34 + # Get the core apps messages. 2.35 + for pkg in $CORE_PKGS 2.36 + do 2.37 + . $WOK/$pkg/receipt 2.38 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 2.39 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 2.40 + $fs/usr/share/locale 2.41 + fi 2.42 + done 2.43 + 2.44 + # Glibc locale. 2.45 + cp -a $GLIBC_FILES/usr/share/i18n/locales/$LOCALEDEF \ 2.46 + $fs/usr/share/i18n/locales 2.47 + cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 2.48 + 2.49 + PACKAGE="$PKG_NAME" 2.50 + VERSION="$PKG_VERS" 2.51 + 2.52 + # Gen locale files. 2.53 + mkdir -p $fs/usr/lib/locale 2.54 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 2.55 +} 2.56 + 2.57 +# Post install to configure default locale. 2.58 +post_install() 2.59 +{ 2.60 + local root 2.61 + root=$1 2.62 + # locale.conf 2.63 + if [ -f $root/etc/locale.conf ]; then 2.64 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 2.65 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 2.66 + fi 2.67 +} 2.68 + 2.69 +# Back to C if it's the last used locale. 2.70 +post_remove() 2.71 +{ 2.72 + if grep -q $LOCALEDEF /etc/locale.conf; then 2.73 + echo "LANG=C" > /etc/locale.conf 2.74 + echo "LC_ALL=C" >> /etc/locale.conf 2.75 + fi 2.76 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/locale-es/receipt Wed Apr 09 16:08:07 2008 +0200 3.3 @@ -0,0 +1,72 @@ 3.4 +# SliTaz package receipt 3.5 + 3.6 +PACKAGE="locale-es" 3.7 +VERSION="1.0" 3.8 +CATEGORY="system-tools" 3.9 +SHORT_DESC="Spanish locale pack." 3.10 +MAINTAINER="pankso@slitaz.org" 3.11 +DEPENDS="glibc-base" 3.12 +BUILD_DEPENDS="glibc" 3.13 +WEB_SITE="http://www.slitaz.org/" 3.14 + 3.15 +LOCALE="es" 3.16 +LOCALEDEF="es_ES" 3.17 +CHARMAP="ISO-8859-1" 3.18 +#CORE_PKGS="geany leafpad" 3.19 +CORE_PKGS="" 3.20 + 3.21 +GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 3.22 +PKG_NAME="$PACKAGE" 3.23 +PKG_VERS="$VERSION" 3.24 + 3.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.26 +# Install files in /usr/lib/locale. UTF-8: 3.27 +# localedef -i $LOCALEDEF -f UTF-8 $root/usr/lib/locale/$LOCALEDEF.utf8 3.28 +# 3.29 +genpkg_rules() 3.30 +{ 3.31 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/share/i18n/locales 3.32 + 3.33 + # Get the core apps messages. 3.34 + for pkg in $CORE_PKGS 3.35 + do 3.36 + . $WOK/$pkg/receipt 3.37 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 3.38 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 3.39 + $fs/usr/share/locale 3.40 + fi 3.41 + done 3.42 + 3.43 + # Glibc locale. 3.44 + cp -a $GLIBC_FILES/usr/share/i18n/locales/$LOCALEDEF \ 3.45 + $fs/usr/share/i18n/locales 3.46 + cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 3.47 + 3.48 + PACKAGE="$PKG_NAME" 3.49 + VERSION="$PKG_VERS" 3.50 + 3.51 + # Gen locale files. 3.52 + mkdir -p $fs/usr/lib/locale 3.53 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 3.54 +} 3.55 + 3.56 +# Post install to configure default locale. 3.57 +post_install() 3.58 +{ 3.59 + local root 3.60 + root=$1 3.61 + # locale.conf 3.62 + if [ -f $root/etc/locale.conf ]; then 3.63 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 3.64 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 3.65 + fi 3.66 +} 3.67 + 3.68 +# Back to C if it's the last used locale. 3.69 +post_remove() 3.70 +{ 3.71 + if grep -q $LOCALEDEF /etc/locale.conf; then 3.72 + echo "LANG=C" > /etc/locale.conf 3.73 + echo "LC_ALL=C" >> /etc/locale.conf 3.74 + fi 3.75 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/locale-ru/receipt Wed Apr 09 16:08:07 2008 +0200 4.3 @@ -0,0 +1,87 @@ 4.4 +# SliTaz package receipt 4.5 + 4.6 +PACKAGE="locale-ru" 4.7 +VERSION="1.0" 4.8 +CATEGORY="system-tools" 4.9 +SHORT_DESC="Russian locale pack." 4.10 +MAINTAINER="pankso@slitaz.org" 4.11 +DEPENDS="glibc-base" 4.12 +BUILD_DEPENDS="glibc xorg-libX11" 4.13 +WEB_SITE="http://www.slitaz.org/" 4.14 + 4.15 +LOCALE="ru" 4.16 +LOCALEDEF="ru_RU" 4.17 +CHARMAP="KOI8-RU" 4.18 +#CORE_PKGS="emelfm2 geany leafpad" 4.19 +CORE_PKGS="" 4.20 + 4.21 +LIBX11_VERSION="1.1.3" 4.22 +GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 4.23 +PKG_NAME="$PACKAGE" 4.24 +PKG_VERS="$VERSION" 4.25 + 4.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.27 +# Install files in /usr/lib/locale. UTF-8: 4.28 +# localedef -i $LOCALEDEF -f UTF-8 $root/usr/lib/locale/$LOCALEDEF.utf8 4.29 +# 4.30 +genpkg_rules() 4.31 +{ 4.32 + mkdir -p \ 4.33 + $fs/usr/share/locale/$LOCALE \ 4.34 + $fs/usr/share/i18n/locales \ 4.35 + $fs/usr/share/i18n/charmaps 4.36 + 4.37 + # Get the core apps messages. 4.38 + for pkg in $CORE_PKGS 4.39 + do 4.40 + . $WOK/$pkg/receipt 4.41 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 4.42 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 4.43 + $fs/usr/share/locale 4.44 + fi 4.45 + done 4.46 + 4.47 + # X11 locale. 4.48 + #mkdir -p $fs/usr/share/X11/locale 4.49 + #cp -a $WOK/xorg-libX11/libX11-$LIBX11_VERSION/_pkg/usr/share/X11/locale/iso8859-5 \ 4.50 + # $fs/usr/share/X11/locale 4.51 + 4.52 + # KOI8-RU gconv lib. 4.53 + mkdir -p $fs/usr/lib/gconv 4.54 + cp -a $GLIBC_FILES/usr/lib/gconv/$CHARMAP.so $fs/usr/lib/gconv 4.55 + 4.56 + # Glibc locale. 4.57 + cp -a $GLIBC_FILES/usr/share/i18n/locales/$LOCALEDEF \ 4.58 + $fs/usr/share/i18n/locales 4.59 + cp -a $GLIBC_FILES/usr/share/i18n/charmaps/$CHARMAP.gz \ 4.60 + $fs/usr/share/i18n/charmaps 4.61 + cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 4.62 + 4.63 + PACKAGE="$PKG_NAME" 4.64 + VERSION="$PKG_VERS" 4.65 + 4.66 + # Gen locale files. 4.67 + mkdir -p $fs/usr/lib/locale 4.68 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 4.69 +} 4.70 + 4.71 +# Post install to configure default locale. 4.72 +post_install() 4.73 +{ 4.74 + local root 4.75 + root=$1 4.76 + # locale.conf 4.77 + if [ -f $root/etc/locale.conf ]; then 4.78 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 4.79 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 4.80 + fi 4.81 +} 4.82 + 4.83 +# Back to C if it's the last used locale. 4.84 +post_remove() 4.85 +{ 4.86 + if grep -q $LOCALEDEF /etc/locale.conf; then 4.87 + echo "LANG=C" > /etc/locale.conf 4.88 + echo "LC_ALL=C" >> /etc/locale.conf 4.89 + fi 4.90 +}