wok annotate locale-id/receipt @ rev 12968

ssmtp: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 01 12:22:01 2012 +0200 (2012-06-01)
parents ee88cfdf14a2
children 874b0d62ff7e
rev   line source
pankso@950 1 # SliTaz package receipt
pankso@950 2
pankso@950 3 PACKAGE="locale-id"
pankso@10739 4 VERSION="4.0"
pankso@950 5 CATEGORY="system-tools"
pankso@950 6 SHORT_DESC="Indonesian locale pack."
pankso@950 7 MAINTAINER="pankso@slitaz.org"
pankso@950 8 DEPENDS="glibc-base"
pankso@3087 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
pankso@950 10 WEB_SITE="http://www.slitaz.org/"
pascal@11854 11 WANTED="slitaz-i18n"
pankso@950 12
pankso@950 13 LOCALE="id"
pankso@950 14 LOCALEDEF="id_ID"
pankso@4855 15 CHARMAP="UTF-8"
pankso@950 16
pankso@950 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@950 18 genpkg_rules()
pankso@3087 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@950 28 }
pankso@950 29
pankso@950 30 # Back to C if it's the last used locale.
pankso@950 31 post_remove()
pankso@950 32 {
pankso@950 33 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@950 34 echo "LANG=C" > /etc/locale.conf
pankso@950 35 echo "LC_ALL=C" >> /etc/locale.conf
pankso@950 36 fi
pankso@10778 37 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@950 38 }