wok annotate locale-hu/receipt @ rev 13581

Autofs: copy content to proper paths
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Nov 06 01:33:15 2012 -0200 (2012-11-06)
parents ee88cfdf14a2
children aef7f0994585
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/"
pascal@11854 11 WANTED="slitaz-i18n"
pankso@2739 12
pankso@2739 13 LOCALE="hu"
pankso@2739 14 LOCALEDEF="hu_HU"
pankso@4855 15 CHARMAP="UTF-8"
pankso@2739 16
pankso@2739 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2739 18 genpkg_rules()
pankso@3091 19 {
slaxemulator@9701 20 . $WOK/slitaz-i18n/stuff/locale-pack.functions
slaxemulator@9701 21 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@3087 22 mk_locale_dir
pankso@3087 23 get_slitaz_messages
pankso@3087 24 get_core_messages
pankso@10778 25 # Pregenerate locale file so we dont need glibc-locale as dep.
pankso@10778 26 mkdir -p $fs/usr/lib/locale
pankso@10778 27 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@2739 28 }
pankso@2739 29
pankso@2739 30 # Back to C if it's the last used locale.
pankso@2739 31 post_remove()
pankso@2739 32 {
pankso@2739 33 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2739 34 echo "LANG=C" > /etc/locale.conf
pankso@2739 35 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2739 36 fi
pankso@10778 37 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@2739 38 }