wok-current view locale-pt/receipt @ rev 9850
Up: kbd to 1.15.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 15 21:55:14 2011 +0000 (2011-05-15) |
parents | d1768332cee0 |
children | e63d22f12936 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-pt"
4 VERSION="2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Portuguese/Brazilian locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
10 WEB_SITE="http://www.slitaz.org/"
12 LOCALE="pt"
13 LOCALEDEF="pt_BR"
14 CHARMAP="UTF-8"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 . $WOK/slitaz-i18n/stuff/locale-pack.conf
20 # Ensure packages are built.
21 for pkg in $CORE_PKGS
22 do
23 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
24 done
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 . $WOK/slitaz-i18n/stuff/locale-pack.functions
31 . $WOK/slitaz-i18n/stuff/locale-pack.conf
32 PKG_NAME="$PACKAGE"
33 PKG_VERS="$VERSION"
34 mk_locale_dir
35 get_slitaz_messages
36 get_core_messages
37 PACKAGE="$PKG_NAME"
38 VERSION="$PKG_VERS"
39 LOCALE="pt_BR"
40 }
42 # Post install to remove old locale-pt_BR.
43 post_install()
44 {
45 if [ -d /var/lib/tazpkg/installed/locale-pt_BR ]; then
46 echo "y" | tazpkg remove locale-pt_BR
47 fi
48 }
50 # Back to C if it's the last used locale.
51 post_remove()
52 {
53 if grep -q $LOCALEDEF /etc/locale.conf; then
54 echo "LANG=C" > /etc/locale.conf
55 echo "LC_ALL=C" >> /etc/locale.conf
56 fi
57 }