wok view locale-zh_TW/receipt @ rev 10273
util-linux-ng: fix wget url (did you test and build your upadates ???)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 21 20:31:32 2011 +0200 (2011-05-21) |
parents | d1768332cee0 |
children | e63d22f12936 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-zh_TW"
4 VERSION="1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Chinese Traditional locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base pcf-uming"
9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
10 WEB_SITE="http://www.slitaz.org/"
12 LOCALE="zh_TW"
13 LOCALEDEF="zh_TW"
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 # Genereted locale files are in /usr/lib/locale.
29 genpkg_rules()
30 {
31 . $WOK/slitaz-i18n/stuff/locale-pack.functions
32 . $WOK/slitaz-i18n/stuff/locale-pack.conf
33 PKG_NAME="$PACKAGE"
34 PKG_VERS="$VERSION"
35 mk_locale_dir
36 get_slitaz_messages
37 get_core_messages
38 PACKAGE="$PKG_NAME"
39 VERSION="$PKG_VERS"
40 # Pregenerate locale file si we dont need glibc-locale as dep.
41 mkdir -p $fs/usr/lib/locale
42 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
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 }