wok-current annotate locale-sv/receipt @ rev 10907
Add keychain
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 25 16:44:28 2011 +0200 (2011-07-25) |
parents | d630cec00483 |
children | bcfe199cef3f |
rev | line source |
---|---|
pankso@10752 | 1 # SliTaz package receipt |
pankso@10752 | 2 |
pankso@10752 | 3 PACKAGE="locale-sv" |
pankso@10752 | 4 VERSION="4.0" |
pankso@10752 | 5 CATEGORY="system-tools" |
pankso@10752 | 6 SHORT_DESC="Swedish locale pack." |
pankso@10752 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@10752 | 8 DEPENDS="glibc-base" |
pankso@10752 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@10752 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@10752 | 11 |
pankso@10752 | 12 LOCALE="sv" |
pankso@10778 | 13 LOCALEDEF="sv_SE" |
pankso@10778 | 14 CHARMAP="UTF-8" |
pankso@10752 | 15 |
pankso@10752 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10752 | 17 genpkg_rules() |
pankso@10752 | 18 { |
pankso@10752 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@10752 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@10752 | 21 mk_locale_dir |
pankso@10752 | 22 get_slitaz_messages |
pankso@10752 | 23 get_core_messages |
pankso@10778 | 24 # Pregenerate locale file so we dont need glibc-locale as dep. |
pankso@10778 | 25 mkdir -p $fs/usr/lib/locale |
pankso@10778 | 26 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@10752 | 27 } |
pankso@10752 | 28 |
pankso@10752 | 29 # Back to C if it's the last used locale. |
pankso@10752 | 30 post_remove() |
pankso@10752 | 31 { |
pankso@10752 | 32 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@10752 | 33 echo "LANG=C" > /etc/locale.conf |
pankso@10752 | 34 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@10752 | 35 fi |
pankso@10778 | 36 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@10752 | 37 } |