wok annotate locale-fr/receipt @ rev 4033

Update: xorg X11 and Xrender devs (DEPENDS)
author Matthew Sheets <rcx@zoominternet.net>
date Mon Sep 07 16:53:32 2009 +0000 (2009-09-07)
parents a51ace1961b2
children d42b38d61b43
rev   line source
pankso@2892 1 # SliTaz package receipt
pankso@2892 2
pankso@2892 3 PACKAGE="locale-fr"
pankso@2892 4 VERSION="2.0"
pankso@2892 5 CATEGORY="system-tools"
pankso@2892 6 SHORT_DESC="French locale pack."
pankso@2892 7 MAINTAINER="pankso@slitaz.org"
pankso@2892 8 DEPENDS="glibc-base"
pankso@3087 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
pankso@2892 10 WEB_SITE="http://www.slitaz.org/"
pankso@2892 11
pankso@2892 12 LOCALE="fr"
pankso@2892 13 LOCALEDEF="fr_FR"
pankso@2892 14 CHARMAP="ISO-8859-1"
pankso@2892 15
pankso@2892 16 # Rules to configure and make the package.
pankso@2892 17 compile_rules()
pankso@2892 18 {
pankso@3091 19 # French messages are directly include in all packages by tazwok.
pankso@3091 20 CORE_PKGS=""
pankso@2892 21 # Ensure packages are built.
pankso@2892 22 for pkg in $CORE_PKGS
pankso@2892 23 do
pankso@2892 24 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
pankso@2892 25 done
pankso@2892 26 }
pankso@2892 27
pankso@2892 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2892 29 genpkg_rules()
pankso@3091 30 {
pankso@3091 31 . $WOK/slitaz-i18n/stuff/locale-pack.functions
pankso@3091 32 CORE_PKGS=""
pankso@2892 33 PKG_NAME="$PACKAGE"
pankso@2892 34 PKG_VERS="$VERSION"
pankso@3087 35 mk_locale_dir
pankso@3087 36 get_slitaz_messages
pankso@3087 37 get_core_messages
pankso@2892 38 PACKAGE="$PKG_NAME"
pankso@2892 39 VERSION="$PKG_VERS"
pankso@2892 40 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@2892 41 }
pankso@2892 42
pankso@2892 43 # Back to C if it's the last used locale.
pankso@2892 44 post_remove()
pankso@2892 45 {
pankso@2892 46 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2892 47 echo "LANG=C" > /etc/locale.conf
pankso@2892 48 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2892 49 fi
pankso@2892 50 }