wok-6.x annotate locale-cs/receipt @ rev 10726

libtaz: Don't need to check /usr/bin/hg anymore. Best to get the tag 1.1.2 version. May need to delete the slitaz-dev-tools-1.1.2.tar.bz2 source on tank to make sure we have the tag version.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 28 20:44:37 2011 +0000 (2011-05-28)
parents d1768332cee0
children e63d22f12936
rev   line source
pankso@529 1 # SliTaz package receipt
pankso@529 2
pankso@529 3 PACKAGE="locale-cs"
pankso@3023 4 VERSION="2.0"
pankso@529 5 CATEGORY="system-tools"
pankso@529 6 SHORT_DESC="Czech 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@529 12 LOCALE="cs"
pankso@529 13 LOCALEDEF="cs_CZ"
pankso@4855 14 CHARMAP="UTF-8"
pankso@529 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@529 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@529 28 genpkg_rules()
pankso@3091 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@529 37 PACKAGE="$PKG_NAME"
pankso@529 38 VERSION="$PKG_VERS"
pankso@529 39 }
pankso@529 40
pankso@529 41 # Back to C if it's the last used locale.
pankso@529 42 post_remove()
pankso@529 43 {
pankso@529 44 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@529 45 echo "LANG=C" > /etc/locale.conf
pankso@529 46 echo "LC_ALL=C" >> /etc/locale.conf
pankso@529 47 fi
pankso@529 48 }