wok-next annotate locale-id/receipt @ rev 10739
locale-*: Up to 4.0 version string, had core pkgs to french pack (we dont have any po file now!) and add nano, mtpaint, midori to all languages pack
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 00:54:30 2011 +0200 (2011-05-30) |
parents | 7b13b3b4b836 |
children | 6a16e4339314 |
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 |
pascal@1552 | 16 # Rules to configure and make the package. |
pascal@1552 | 17 compile_rules() |
pascal@1552 | 18 { |
slaxemulator@9701 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pascal@1552 | 20 # Ensure packages are built. |
pascal@1552 | 21 for pkg in $CORE_PKGS |
pascal@1552 | 22 do |
pascal@1552 | 23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pascal@1552 | 24 done |
pascal@1552 | 25 } |
pascal@1552 | 26 |
pankso@950 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@950 | 28 genpkg_rules() |
pankso@3087 | 29 { |
slaxemulator@9701 | 30 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
slaxemulator@9701 | 31 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2702 | 32 PKG_NAME="$PACKAGE" |
pankso@2702 | 33 PKG_VERS="$VERSION" |
pankso@3087 | 34 mk_locale_dir |
pankso@3087 | 35 get_slitaz_messages |
pankso@3087 | 36 get_core_messages |
pankso@950 | 37 PACKAGE="$PKG_NAME" |
pankso@950 | 38 VERSION="$PKG_VERS" |
pankso@950 | 39 } |
pankso@950 | 40 |
pankso@950 | 41 # Back to C if it's the last used locale. |
pankso@950 | 42 post_remove() |
pankso@950 | 43 { |
pankso@950 | 44 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@950 | 45 echo "LANG=C" > /etc/locale.conf |
pankso@950 | 46 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@950 | 47 fi |
pankso@950 | 48 } |