wok-current annotate locale-id/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@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@2702 | 21 PKG_NAME="$PACKAGE" |
pankso@2702 | 22 PKG_VERS="$VERSION" |
pankso@3087 | 23 mk_locale_dir |
pankso@3087 | 24 get_slitaz_messages |
pankso@3087 | 25 get_core_messages |
pankso@950 | 26 PACKAGE="$PKG_NAME" |
pankso@950 | 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@950 | 31 } |
pankso@950 | 32 |
pankso@950 | 33 # Back to C if it's the last used locale. |
pankso@950 | 34 post_remove() |
pankso@950 | 35 { |
pankso@950 | 36 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@950 | 37 echo "LANG=C" > /etc/locale.conf |
pankso@950 | 38 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@950 | 39 fi |
pankso@10778 | 40 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@950 | 41 } |