wok-stable annotate locale-pt/receipt @ rev 10811

lighttpd: stop Busybox httpd in post_install
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 05 01:40:47 2011 +0200 (2011-06-05)
parents d630cec00483
children bcfe199cef3f
rev   line source
pankso@3035 1 # SliTaz package receipt
pankso@3035 2
pankso@3035 3 PACKAGE="locale-pt"
pankso@10739 4 VERSION="4.0"
pankso@3035 5 CATEGORY="system-tools"
pankso@10778 6 SHORT_DESC="Portuguese locale pack."
pankso@3035 7 MAINTAINER="pankso@slitaz.org"
pankso@3035 8 DEPENDS="glibc-base"
pankso@3087 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
pankso@3035 10 WEB_SITE="http://www.slitaz.org/"
pankso@3035 11
pankso@3087 12 LOCALE="pt"
pankso@10778 13 LOCALEDEF="pt_PT"
pankso@4855 14 CHARMAP="UTF-8"
pankso@3035 15
pankso@3035 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3035 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@3087 21 mk_locale_dir
pankso@3087 22 get_slitaz_messages
pankso@3087 23 get_core_messages
pankso@10778 24 # Pregenerate locale file so we dont need glibc-locale as dep.
pankso@10778 25 mkdir -p $fs/usr/lib/locale
pankso@10778 26 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@3035 27 }
pankso@3035 28
pankso@3035 29 # Back to C if it's the last used locale.
pankso@3035 30 post_remove()
pankso@3035 31 {
pankso@3035 32 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@3035 33 echo "LANG=C" > /etc/locale.conf
pankso@3035 34 echo "LC_ALL=C" >> /etc/locale.conf
pankso@3035 35 fi
pankso@10778 36 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@3035 37 }