wok annotate locale-da/receipt @ rev 11163

Up: geoip to 1.4.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 02 06:56:11 2011 +0000 (2011-11-02)
parents 275cf05e1e22
children bcfe199cef3f
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/"
pankso@10779 11
pankso@10779 12 LOCALE="da"
pankso@10779 13 LOCALEDEF="da_DK"
pankso@10779 14 CHARMAP="UTF-8"
pankso@10779 15
pankso@10779 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10779 17 genpkg_rules()
pankso@10779 18 {
pankso@10779 19 . $WOK/slitaz-i18n/stuff/locale-pack.functions
pankso@10779 20 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pankso@10779 21 mk_locale_dir
pankso@10779 22 get_slitaz_messages
pankso@10779 23 get_core_messages
pankso@10779 24 # Pregenerate locale file so we dont need glibc-locale as dep.
pankso@10779 25 mkdir -p $fs/usr/lib/locale
pankso@10779 26 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
pankso@10779 27 }
pankso@10779 28
pankso@10779 29 # Back to C if it's the last used locale.
pankso@10779 30 post_remove()
pankso@10779 31 {
pankso@10779 32 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@10779 33 echo "LANG=C" > /etc/locale.conf
pankso@10779 34 echo "LC_ALL=C" >> /etc/locale.conf
pankso@10779 35 fi
pankso@10779 36 rm -rf /usr/lib/locale/$LOCALEDEF
pankso@10779 37 }