wok-stable annotate locale-id/receipt @ rev 10942

asterisk: store ilbc sources in src cache
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 29 18:16:24 2011 +0200 (2011-08-29)
parents d630cec00483
children bcfe199cef3f
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/"
pankso@950 11
pankso@950 12 LOCALE="id"
pankso@950 13 LOCALEDEF="id_ID"
pankso@4855 14 CHARMAP="UTF-8"
pankso@950 15
pankso@950 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@950 17 genpkg_rules()
pankso@3087 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@950 27 }
pankso@950 28
pankso@950 29 # Back to C if it's the last used locale.
pankso@950 30 post_remove()
pankso@950 31 {
pankso@950 32 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@950 33 echo "LANG=C" > /etc/locale.conf
pankso@950 34 echo "LC_ALL=C" >> /etc/locale.conf
pankso@950 35 fi
pankso@10778 36 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@950 37 }