wok-current view locale-hu/receipt @ rev 3007
Up: mesa (7.4.1) with DRI support
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 11 22:20:25 2009 +0200 (2009-05-11) |
parents | 6d051c4f6e60 |
children | f3f6bcae6367 |
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 $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
34 cp -a stuff/etc $fs
35 PKG_NAME="$PACKAGE"
36 PKG_VERS="$VERSION"
37 # Get the core packages messages.
38 for pkg in $CORE_PKGS
39 do
40 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
41 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
42 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
43 $fs/usr/share/locale
44 fi
45 done
46 PACKAGE="$PKG_NAME"
47 VERSION="$PKG_VERS"
48 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
49 }
51 # Post install to configure default locale.
52 post_install()
53 {
54 local root
55 root=$1
56 # locale.conf
57 if [ -s $root/etc/locale.conf ]; then
58 echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf
59 echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf
60 fi
61 }
63 # Back to C if it's the last used locale.
64 post_remove()
65 {
66 if grep -q $LOCALEDEF /etc/locale.conf; then
67 echo "LANG=C" > /etc/locale.conf
68 echo "LC_ALL=C" >> /etc/locale.conf
69 fi
70 }