wok-4.x rev 724
Add: locale-de, locale-it, locale-pt_BR
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 02 22:59:06 2008 +0200 (2008-05-02) |
parents | e7d33a4617f8 |
children | 67255ebad6ce |
files | locale-de/receipt locale-it/receipt locale-pt_BR/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/locale-de/receipt Fri May 02 22:59:06 2008 +0200 1.3 @@ -0,0 +1,69 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="locale-de" 1.7 +VERSION="1.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="German locale pack." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="glibc-base" 1.12 +BUILD_DEPENDS="glibc glibc-locale" 1.13 +WEB_SITE="http://www.slitaz.org/" 1.14 + 1.15 +CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 1.16 + 1.17 +LOCALE="de" 1.18 +LOCALEDEF="de_DE" 1.19 +CHARMAP="ISO-8859-1" 1.20 + 1.21 +GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 1.22 +PKG_NAME="$PACKAGE" 1.23 +PKG_VERS="$VERSION" 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +# Install files in /usr/lib/locale. 1.27 +# 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr/share/locale/$LOCALE 1.31 + 1.32 + # Get the core apps messages. 1.33 + for pkg in $CORE_PKGS 1.34 + do 1.35 + . $WOK/$pkg/receipt 1.36 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 1.37 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 1.38 + $fs/usr/share/locale 1.39 + fi 1.40 + done 1.41 + 1.42 + # Glibc locale. 1.43 + #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 1.44 + 1.45 + PACKAGE="$PKG_NAME" 1.46 + VERSION="$PKG_VERS" 1.47 + 1.48 + # Gen locale files. 1.49 + mkdir -p $fs/usr/lib/locale 1.50 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.51 +} 1.52 + 1.53 +# Post install to configure default locale. 1.54 +post_install() 1.55 +{ 1.56 + local root 1.57 + root=$1 1.58 + # locale.conf 1.59 + if [ -f $root/etc/locale.conf ]; then 1.60 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 1.61 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 1.62 + fi 1.63 +} 1.64 + 1.65 +# Back to C if it's the last used locale. 1.66 +post_remove() 1.67 +{ 1.68 + if grep -q $LOCALEDEF /etc/locale.conf; then 1.69 + echo "LANG=C" > /etc/locale.conf 1.70 + echo "LC_ALL=C" >> /etc/locale.conf 1.71 + fi 1.72 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/locale-it/receipt Fri May 02 22:59:06 2008 +0200 2.3 @@ -0,0 +1,69 @@ 2.4 +# SliTaz package receipt 2.5 + 2.6 +PACKAGE="locale-it" 2.7 +VERSION="1.0" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Italian locale pack." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +DEPENDS="glibc-base" 2.12 +BUILD_DEPENDS="glibc glibc-locale" 2.13 +WEB_SITE="http://www.slitaz.org/" 2.14 + 2.15 +CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 2.16 + 2.17 +LOCALE="it" 2.18 +LOCALEDEF="it_IT" 2.19 +CHARMAP="ISO-8859-1" 2.20 + 2.21 +GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 2.22 +PKG_NAME="$PACKAGE" 2.23 +PKG_VERS="$VERSION" 2.24 + 2.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.26 +# Install files in /usr/lib/locale. 2.27 +# 2.28 +genpkg_rules() 2.29 +{ 2.30 + mkdir -p $fs/usr/share/locale/$LOCALE 2.31 + 2.32 + # Get the core apps messages. 2.33 + for pkg in $CORE_PKGS 2.34 + do 2.35 + . $WOK/$pkg/receipt 2.36 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 2.37 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 2.38 + $fs/usr/share/locale 2.39 + fi 2.40 + done 2.41 + 2.42 + # Glibc locale. 2.43 + #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 2.44 + 2.45 + PACKAGE="$PKG_NAME" 2.46 + VERSION="$PKG_VERS" 2.47 + 2.48 + # Gen locale files. 2.49 + mkdir -p $fs/usr/lib/locale 2.50 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 2.51 +} 2.52 + 2.53 +# Post install to configure default locale. 2.54 +post_install() 2.55 +{ 2.56 + local root 2.57 + root=$1 2.58 + # locale.conf 2.59 + if [ -f $root/etc/locale.conf ]; then 2.60 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 2.61 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 2.62 + fi 2.63 +} 2.64 + 2.65 +# Back to C if it's the last used locale. 2.66 +post_remove() 2.67 +{ 2.68 + if grep -q $LOCALEDEF /etc/locale.conf; then 2.69 + echo "LANG=C" > /etc/locale.conf 2.70 + echo "LC_ALL=C" >> /etc/locale.conf 2.71 + fi 2.72 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/locale-pt_BR/receipt Fri May 02 22:59:06 2008 +0200 3.3 @@ -0,0 +1,69 @@ 3.4 +# SliTaz package receipt 3.5 + 3.6 +PACKAGE="locale-pt_BR" 3.7 +VERSION="1.0" 3.8 +CATEGORY="system-tools" 3.9 +SHORT_DESC="Brazilian locale pack." 3.10 +MAINTAINER="pankso@slitaz.org" 3.11 +DEPENDS="glibc-base" 3.12 +BUILD_DEPENDS="glibc glibc-locale" 3.13 +WEB_SITE="http://www.slitaz.org/" 3.14 + 3.15 +CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 3.16 + 3.17 +LOCALE="pt_BR" 3.18 +LOCALEDEF="pt_BR" 3.19 +CHARMAP="ISO-8859-1" 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. 3.27 +# 3.28 +genpkg_rules() 3.29 +{ 3.30 + mkdir -p $fs/usr/share/locale/$LOCALE 3.31 + 3.32 + # Get the core apps messages. 3.33 + for pkg in $CORE_PKGS 3.34 + do 3.35 + . $WOK/$pkg/receipt 3.36 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 3.37 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 3.38 + $fs/usr/share/locale 3.39 + fi 3.40 + done 3.41 + 3.42 + # Glibc locale. 3.43 + #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 3.44 + 3.45 + PACKAGE="$PKG_NAME" 3.46 + VERSION="$PKG_VERS" 3.47 + 3.48 + # Gen locale files. 3.49 + mkdir -p $fs/usr/lib/locale 3.50 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 3.51 +} 3.52 + 3.53 +# Post install to configure default locale. 3.54 +post_install() 3.55 +{ 3.56 + local root 3.57 + root=$1 3.58 + # locale.conf 3.59 + if [ -f $root/etc/locale.conf ]; then 3.60 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 3.61 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 3.62 + fi 3.63 +} 3.64 + 3.65 +# Back to C if it's the last used locale. 3.66 +post_remove() 3.67 +{ 3.68 + if grep -q $LOCALEDEF /etc/locale.conf; then 3.69 + echo "LANG=C" > /etc/locale.conf 3.70 + echo "LC_ALL=C" >> /etc/locale.conf 3.71 + fi 3.72 +}