wok-6.x annotate locale-da/receipt @ rev 14628
Up: subversion to 1.7.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 20:48:23 2013 +0000 (2013-06-01) |
parents | ee88cfdf14a2 |
children | 874b0d62ff7e |
rev | line source |
---|---|
pankso@10779 | 1 # SliTaz package receipt |
pankso@10779 | 2 |
pankso@10779 | 3 PACKAGE="locale-da" |
pankso@10779 | 4 VERSION="4.0" |
pankso@10779 | 5 CATEGORY="system-tools" |
pankso@10779 | 6 SHORT_DESC="Danish locale pack." |
pankso@10779 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@10779 | 8 DEPENDS="glibc-base" |
pankso@10779 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@10779 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@11854 | 11 WANTED="slitaz-i18n" |
pankso@10779 | 12 |
pankso@10779 | 13 LOCALE="da" |
pankso@10779 | 14 LOCALEDEF="da_DK" |
pankso@10779 | 15 CHARMAP="UTF-8" |
pankso@10779 | 16 |
pankso@10779 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10779 | 18 genpkg_rules() |
pankso@10779 | 19 { |
pankso@10779 | 20 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@10779 | 21 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@10779 | 22 mk_locale_dir |
pankso@10779 | 23 get_slitaz_messages |
pankso@10779 | 24 get_core_messages |
pankso@10779 | 25 # Pregenerate locale file so we dont need glibc-locale as dep. |
pankso@10779 | 26 mkdir -p $fs/usr/lib/locale |
pankso@10779 | 27 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF |
pankso@10779 | 28 } |
pankso@10779 | 29 |
pankso@10779 | 30 # Back to C if it's the last used locale. |
pankso@10779 | 31 post_remove() |
pankso@10779 | 32 { |
pankso@10779 | 33 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@10779 | 34 echo "LANG=C" > /etc/locale.conf |
pankso@10779 | 35 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@10779 | 36 fi |
pankso@10779 | 37 rm -rf /usr/lib/locale/$LOCALEDEF |
pankso@10779 | 38 } |