wok annotate locale-pt_BR/receipt @ rev 14794
catfish: fix genpkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 08 20:42:48 2013 +0000 (2013-07-08) |
parents | ca6e8553bf3f |
children | 874b0d62ff7e |
rev | line source |
---|---|
pankso@724 | 1 # SliTaz package receipt |
pankso@724 | 2 |
pankso@724 | 3 PACKAGE="locale-pt_BR" |
pankso@12038 | 4 VERSION="4.0" |
pankso@10784 | 5 CATEGORY="system-tools" |
pankso@10778 | 6 SHORT_DESC="Portuguese/Brazilian locale pack." |
pankso@724 | 7 MAINTAINER="pankso@slitaz.org" |
al@14636 | 8 WEB_SITE="http://www.slitaz.org/" |
al@14636 | 9 |
al@14636 | 10 WANTED="slitaz-i18n xorg-libX11" |
pankso@12038 | 11 DEPENDS="glibc-base" |
pankso@12038 | 12 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" |
pankso@724 | 13 |
pankso@10778 | 14 LOCALE="pt_BR" |
pankso@10778 | 15 LOCALEDEF="pt_BR" |
pankso@10778 | 16 CHARMAP="UTF-8" |
pankso@10778 | 17 |
pankso@10778 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@724 | 19 genpkg_rules() |
pankso@724 | 20 { |
pankso@10778 | 21 . $WOK/slitaz-i18n/stuff/locale-pack.functions |
pankso@10778 | 22 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pankso@10778 | 23 mk_locale_dir |
pankso@10778 | 24 get_slitaz_messages |
pankso@10778 | 25 get_core_messages |
al@14636 | 26 get_x11_locale |
pankso@724 | 27 } |
pankso@12038 | 28 |
pankso@12038 | 29 # Back to C if it's the last used locale. |
pankso@12038 | 30 post_remove() |
pankso@12038 | 31 { |
pankso@12038 | 32 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@12038 | 33 echo "LANG=C" > /etc/locale.conf |
pankso@12038 | 34 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@12038 | 35 fi |
pankso@12038 | 36 } |