wok-current annotate locale-sv/receipt @ rev 14810
Up: apr-util* (1.5.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:35:05 2013 +0200 (2013-07-17) |
parents | ee88cfdf14a2 |
children | 874b0d62ff7e |
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/" |
pascal@11854 | 11 WANTED="slitaz-i18n" |
pankso@10752 | 12 |
pankso@10752 | 13 LOCALE="sv" |
pankso@10778 | 14 LOCALEDEF="sv_SE" |
pankso@10778 | 15 CHARMAP="UTF-8" |
pankso@10752 | 16 |
pankso@10752 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10752 | 18 genpkg_rules() |
pankso@10752 | 19 { |
pankso@10752 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@10752 | 21 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@10752 | 22 mk_locale_dir |
pankso@10752 | 23 get_slitaz_messages |
pankso@10752 | 24 get_core_messages |
pankso@10778 | 25 # Pregenerate locale file so we dont need glibc-locale as dep. |
pankso@10778 | 26 mkdir -p $fs/usr/lib/locale |
pankso@10778 | 27 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@10752 | 28 } |
pankso@10752 | 29 |
pankso@10752 | 30 # Back to C if it's the last used locale. |
pankso@10752 | 31 post_remove() |
pankso@10752 | 32 { |
pankso@10752 | 33 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@10752 | 34 echo "LANG=C" > /etc/locale.conf |
pankso@10752 | 35 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@10752 | 36 fi |
pankso@10778 | 37 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@10752 | 38 } |