wok-current annotate locale-hu/receipt @ rev 10778

Improve existing locale pack and locale-pt only for Portuguese/Portugal
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 01:50:07 2011 +0200 (2011-06-01)
parents 6a16e4339314
children ee88cfdf14a2
rev   line source
pankso@2739 1 # SliTaz package receipt
pankso@2739 2
pankso@2739 3 PACKAGE="locale-hu"
pankso@10739 4 VERSION="4.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@4855 14 CHARMAP="UTF-8"
pankso@2739 15
pankso@2739 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2739 17 genpkg_rules()
pankso@3091 18 {
slaxemulator@9701 19 . $WOK/slitaz-i18n/stuff/locale-pack.functions
slaxemulator@9701 20 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@2739 21 PKG_NAME="$PACKAGE"
pankso@2739 22 PKG_VERS="$VERSION"
pankso@3087 23 mk_locale_dir
pankso@3087 24 get_slitaz_messages
pankso@3087 25 get_core_messages
pankso@2739 26 PACKAGE="$PKG_NAME"
pankso@2739 27 VERSION="$PKG_VERS"
pankso@10778 28 # Pregenerate locale file so we dont need glibc-locale as dep.
pankso@10778 29 mkdir -p $fs/usr/lib/locale
pankso@10778 30 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@2739 31 }
pankso@2739 32
pankso@2739 33 # Back to C if it's the last used locale.
pankso@2739 34 post_remove()
pankso@2739 35 {
pankso@2739 36 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2739 37 echo "LANG=C" > /etc/locale.conf
pankso@2739 38 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2739 39 fi
pankso@10778 40 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@2739 41 }