wok-6.x annotate locale-hu/receipt @ rev 3946

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