wok annotate locale-hu/receipt @ rev 6057
putty: Upgrade to 0.60-2010-08-03
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Aug 19 21:53:57 2010 +0000 (2010-08-19) |
parents | b584b0d0bbb4 |
children | d1768332cee0 |
rev | line source |
---|---|
pankso@2739 | 1 # SliTaz package receipt |
pankso@2739 | 2 |
pankso@2739 | 3 PACKAGE="locale-hu" |
pankso@2841 | 4 VERSION="2.0" |
pankso@2739 | 5 CATEGORY="system-tools" |
pankso@2739 | 6 SHORT_DESC="Hungry locale pack." |
pankso@2739 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2739 | 8 DEPENDS="glibc-base" |
pankso@3087 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@2739 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@2739 | 11 |
pankso@2739 | 12 LOCALE="hu" |
pankso@2739 | 13 LOCALEDEF="hu_HU" |
pankso@4855 | 14 CHARMAP="UTF-8" |
pankso@2739 | 15 |
pankso@2739 | 16 # Rules to configure and make the package. |
pankso@2739 | 17 compile_rules() |
pankso@2739 | 18 { |
pankso@3091 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2739 | 20 # Ensure packages are built. |
pankso@2739 | 21 for pkg in $CORE_PKGS |
pankso@2739 | 22 do |
pankso@2739 | 23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pankso@2739 | 24 done |
pankso@2739 | 25 } |
pankso@2739 | 26 |
pankso@2739 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2739 | 28 genpkg_rules() |
pankso@3091 | 29 { |
pankso@3091 | 30 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@3091 | 31 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2739 | 32 PKG_NAME="$PACKAGE" |
pankso@2739 | 33 PKG_VERS="$VERSION" |
pankso@3087 | 34 mk_locale_dir |
pankso@3087 | 35 get_slitaz_messages |
pankso@3087 | 36 get_core_messages |
pankso@2739 | 37 PACKAGE="$PKG_NAME" |
pankso@2739 | 38 VERSION="$PKG_VERS" |
pankso@2739 | 39 } |
pankso@2739 | 40 |
pankso@2739 | 41 # Back to C if it's the last used locale. |
pankso@2739 | 42 post_remove() |
pankso@2739 | 43 { |
pankso@2739 | 44 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2739 | 45 echo "LANG=C" > /etc/locale.conf |
pankso@2739 | 46 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2739 | 47 fi |
pankso@2739 | 48 } |