wok view locale-fr/receipt @ rev 10698
winetricks: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 28 09:20:24 2011 +0200 (2011-05-28) |
parents | d1768332cee0 |
children | e63d22f12936 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-fr"
4 VERSION="2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="French 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="fr"
13 LOCALEDEF="fr_FR"
14 CHARMAP="UTF-8"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # French messages are directly include in all packages by tazwok.
20 CORE_PKGS=""
21 # Ensure packages are built.
22 for pkg in $CORE_PKGS
23 do
24 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
25 done
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 . $WOK/slitaz-i18n/stuff/locale-pack.functions
32 CORE_PKGS=""
33 PKG_NAME="$PACKAGE"
34 PKG_VERS="$VERSION"
35 mk_locale_dir
36 get_slitaz_messages
37 get_core_messages
38 ver=`grep ^VERSION $WOK/glibc/receipt | cut -d "\"" -f 2`
39 cp -a $WOK/glibc/install/usr/share/locale/$LOCALE/* \
40 $fs/usr/share/locale/$LOCALE
41 PACKAGE="$PKG_NAME"
42 VERSION="$PKG_VERS"
43 }
45 # Back to C if it's the last used locale.
46 post_remove()
47 {
48 if grep -q $LOCALEDEF /etc/locale.conf; then
49 echo "LANG=C" > /etc/locale.conf
50 echo "LC_ALL=C" >> /etc/locale.conf
51 fi
52 }