wok-6.x diff locale-sv/receipt @ rev 10752
Add locale-sv (Swedish) and mhwaveedit to core po files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 19:18:49 2011 +0200 (2011-05-30) |
parents | |
children | d630cec00483 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/locale-sv/receipt Mon May 30 19:18:49 2011 +0200 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="locale-sv" 1.7 +VERSION="4.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Swedish locale pack." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="glibc-base" 1.12 +BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" 1.13 +WEB_SITE="http://www.slitaz.org/" 1.14 + 1.15 +LOCALE="sv" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + . $WOK/slitaz-i18n/stuff/locale-pack.functions 1.21 + . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.22 + PKG_NAME="$PACKAGE" 1.23 + PKG_VERS="$VERSION" 1.24 + mk_locale_dir 1.25 + get_slitaz_messages 1.26 + get_core_messages 1.27 + PACKAGE="$PKG_NAME" 1.28 + VERSION="$PKG_VERS" 1.29 +} 1.30 + 1.31 +# Back to C if it's the last used locale. 1.32 +post_remove() 1.33 +{ 1.34 + if grep -q $LOCALEDEF /etc/locale.conf; then 1.35 + echo "LANG=C" > /etc/locale.conf 1.36 + echo "LC_ALL=C" >> /etc/locale.conf 1.37 + fi 1.38 +}