wok view locale-hu/receipt @ rev 3083

Up: slitaz-tools (3.2) with new tazx for Xorg 7.4 and more
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 16 00:25:45 2009 +0200 (2009-05-16)
parents f3f6bcae6367
children a51ace1961b2
line source
1 # SliTaz package receipt
3 PACKAGE="locale-hu"
4 VERSION="2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Hungry locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc glibc-locale"
10 WEB_SITE="http://www.slitaz.org/"
12 CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \
13 glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad"
15 LOCALE="hu"
16 LOCALEDEF="hu_HU"
17 CHARMAP="ISO-8859-2"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Ensure packages are built.
23 for pkg in $CORE_PKGS
24 do
25 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
26 done
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 # Genereted locale files are in /usr/lib/locale.
31 genpkg_rules()
32 {
33 mkdir -p \
34 $fs/usr/share/locale/$LOCALE \
35 $fs/usr/share/slitaz/messages \
36 $fs/usr/lib/locale
37 # Get translated files from SliTaz sub projects
38 [ -d $WOK/slitaz-tools/slitaz-tools-*/messages/$LOCALE ] && \
39 cp -a $WOK/slitaz-tools/slitaz-tools-*/messages/$LOCALE \
40 $_pkg/usr/share/slitaz/messages
43 PKG_NAME="$PACKAGE"
44 PKG_VERS="$VERSION"
45 # Get the core packages messages.
46 for pkg in $CORE_PKGS
47 do
48 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
49 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
50 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
51 $fs/usr/share/locale
52 fi
53 done
54 PACKAGE="$PKG_NAME"
55 VERSION="$PKG_VERS"
56 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
57 }
59 # Back to C if it's the last used locale.
60 post_remove()
61 {
62 if grep -q $LOCALEDEF /etc/locale.conf; then
63 echo "LANG=C" > /etc/locale.conf
64 echo "LC_ALL=C" >> /etc/locale.conf
65 fi
66 }