wok-6.x annotate locale-es/receipt @ rev 3087
Add slitaz-i18n (provide script and conf to build languages pack) + clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 16 02:25:40 2009 +0200 (2009-05-16) |
parents | d2be5bd5d83e |
children | b584b0d0bbb4 |
rev | line source |
---|---|
pankso@529 | 1 # SliTaz package receipt |
pankso@529 | 2 |
pankso@529 | 3 PACKAGE="locale-es" |
pankso@2702 | 4 VERSION="1.1" |
pankso@529 | 5 CATEGORY="system-tools" |
pankso@529 | 6 SHORT_DESC="Spanish locale pack." |
pankso@529 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@529 | 8 DEPENDS="glibc-base" |
pankso@3087 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@529 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@529 | 11 |
pankso@3087 | 12 # Source slitaz-i18n files from the wok. |
pankso@3087 | 13 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@3087 | 14 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@670 | 15 |
pankso@529 | 16 LOCALE="es" |
pankso@529 | 17 LOCALEDEF="es_ES" |
pankso@529 | 18 CHARMAP="ISO-8859-1" |
pankso@529 | 19 |
pascal@1552 | 20 # Rules to configure and make the package. |
pascal@1552 | 21 compile_rules() |
pascal@1552 | 22 { |
pascal@1552 | 23 # Ensure packages are built. |
pascal@1552 | 24 for pkg in $CORE_PKGS |
pascal@1552 | 25 do |
pascal@1552 | 26 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pascal@1552 | 27 done |
pascal@1552 | 28 } |
pascal@1552 | 29 |
pankso@529 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@529 | 31 genpkg_rules() |
pankso@3087 | 32 { |
pankso@2702 | 33 PKG_NAME="$PACKAGE" |
pankso@2702 | 34 PKG_VERS="$VERSION" |
pankso@3087 | 35 mk_locale_dir |
pankso@3087 | 36 get_slitaz_messages |
pankso@3087 | 37 get_core_messages |
pankso@529 | 38 PACKAGE="$PKG_NAME" |
pankso@529 | 39 VERSION="$PKG_VERS" |
pankso@529 | 40 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@529 | 41 } |
pankso@529 | 42 |
pankso@529 | 43 # Back to C if it's the last used locale. |
pankso@529 | 44 post_remove() |
pankso@529 | 45 { |
pankso@529 | 46 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@529 | 47 echo "LANG=C" > /etc/locale.conf |
pankso@529 | 48 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@529 | 49 fi |
pankso@529 | 50 } |