wok-current diff locale-fr/receipt @ rev 3017
Add Xorg video driver geode + i740
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 11 22:36:33 2009 +0200 (2009-05-11) |
parents | |
children | b48930694762 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/locale-fr/receipt Mon May 11 22:36:33 2009 +0200 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="locale-fr" 1.7 +VERSION="2.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="French 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 +# French messages are directly include in all packages by tazwok. 1.16 +CORE_PKGS="" 1.17 + 1.18 +LOCALE="fr" 1.19 +LOCALEDEF="fr_FR" 1.20 +CHARMAP="ISO-8859-1" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + # Ensure packages are built. 1.26 + for pkg in $CORE_PKGS 1.27 + do 1.28 + [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 1.29 + done 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +# Genereted locale files are in /usr/lib/locale. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 1.37 + cp -a stuff/etc $fs 1.38 + cp -a stuff/usr $fs 1.39 + PKG_NAME="$PACKAGE" 1.40 + PKG_VERS="$VERSION" 1.41 + # Get the core packages messages. 1.42 + for pkg in $CORE_PKGS 1.43 + do 1.44 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 1.45 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 1.46 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 1.47 + $fs/usr/share/locale 1.48 + fi 1.49 + done 1.50 + PACKAGE="$PKG_NAME" 1.51 + VERSION="$PKG_VERS" 1.52 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.53 +} 1.54 + 1.55 +# Post install to configure default locale. 1.56 +post_install() 1.57 +{ 1.58 + local root 1.59 + root=$1 1.60 + # locale.conf 1.61 + if [ -s $root/etc/locale.conf ]; then 1.62 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 1.63 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 1.64 + fi 1.65 +} 1.66 + 1.67 +# Back to C if it's the last used locale. 1.68 +post_remove() 1.69 +{ 1.70 + if grep -q $LOCALEDEF /etc/locale.conf; then 1.71 + echo "LANG=C" > /etc/locale.conf 1.72 + echo "LC_ALL=C" >> /etc/locale.conf 1.73 + fi 1.74 +}