wok annotate locale-it/receipt @ rev 9511
Added sqlite-dev to apr-util build depends. Needed to build apr-dbd-sqlite package.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 06 08:18:26 2011 +0000 (2011-04-06) |
parents | b584b0d0bbb4 |
children | d1768332cee0 |
rev | line source |
---|---|
pankso@724 | 1 # SliTaz package receipt |
pankso@724 | 2 |
pankso@724 | 3 PACKAGE="locale-it" |
pankso@2702 | 4 VERSION="1.1" |
pankso@724 | 5 CATEGORY="system-tools" |
pankso@724 | 6 SHORT_DESC="Italian locale pack." |
pankso@724 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@724 | 8 DEPENDS="glibc-base" |
pankso@3087 | 9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@724 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@724 | 11 |
pankso@724 | 12 LOCALE="it" |
pankso@724 | 13 LOCALEDEF="it_IT" |
pankso@4855 | 14 CHARMAP="UTF-8" |
pankso@724 | 15 |
pascal@1552 | 16 # Rules to configure and make the package. |
pascal@1552 | 17 compile_rules() |
pascal@1552 | 18 { |
pankso@3091 | 19 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pascal@1552 | 20 # Ensure packages are built. |
pascal@1552 | 21 for pkg in $CORE_PKGS |
pascal@1552 | 22 do |
pascal@1552 | 23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg |
pascal@1552 | 24 done |
pascal@1552 | 25 } |
pascal@1552 | 26 |
pankso@724 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@724 | 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@724 | 37 PACKAGE="$PKG_NAME" |
pankso@724 | 38 VERSION="$PKG_VERS" |
pankso@724 | 39 } |
pankso@724 | 40 |
pankso@724 | 41 # Back to C if it's the last used locale. |
pankso@724 | 42 post_remove() |
pankso@724 | 43 { |
pankso@724 | 44 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@724 | 45 echo "LANG=C" > /etc/locale.conf |
pankso@724 | 46 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@724 | 47 fi |
pankso@724 | 48 } |