wok annotate locale-sl/receipt @ rev 6739
Added rarian.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Oct 16 19:48:05 2010 +0000 (2010-10-16) |
parents | b584b0d0bbb4 |
children | d1768332cee0 |
rev | line source |
---|---|
pankso@2304 | 1 # SliTaz package receipt |
pankso@2304 | 2 |
pankso@2304 | 3 PACKAGE="locale-sl" |
pankso@2702 | 4 VERSION="1.1" |
pankso@2304 | 5 CATEGORY="system-tools" |
pankso@2304 | 6 SHORT_DESC="Slovenian locale pack." |
pankso@2304 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2304 | 8 DEPENDS="glibc-base" |
pankso@3087 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@2304 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@2304 | 11 |
pankso@2304 | 12 LOCALE="sl" |
pankso@2304 | 13 LOCALEDEF="sl_SI" |
pankso@2304 | 14 CHARMAP="UTF-8" |
pankso@2304 | 15 |
pankso@2702 | 16 # Rules to configure and make the package. |
pankso@2702 | 17 compile_rules() |
pankso@2702 | 18 { |
pankso@3091 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2702 | 20 # Ensure packages are built. |
pankso@2702 | 21 for pkg in $CORE_PKGS |
pankso@2702 | 22 do |
pankso@2702 | 23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pankso@2702 | 24 done |
pankso@2702 | 25 } |
pankso@2304 | 26 |
pankso@2304 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2304 | 28 genpkg_rules() |
pankso@3091 | 29 { |
pankso@3091 | 30 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@3091 | 31 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@2702 | 32 PKG_NAME="$PACKAGE" |
pankso@2702 | 33 PKG_VERS="$VERSION" |
pankso@3087 | 34 mk_locale_dir |
pankso@3087 | 35 get_slitaz_messages |
pankso@3087 | 36 get_core_messages |
pankso@2304 | 37 PACKAGE="$PKG_NAME" |
pankso@2304 | 38 VERSION="$PKG_VERS" |
pankso@2304 | 39 } |
pankso@2304 | 40 |
pankso@2304 | 41 # Back to C if it's the last used locale. |
pankso@2304 | 42 post_remove() |
pankso@2304 | 43 { |
pankso@2304 | 44 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2304 | 45 echo "LANG=C" > /etc/locale.conf |
pankso@2304 | 46 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2304 | 47 fi |
pankso@2304 | 48 } |