wok view locale-ru/receipt @ rev 1480

update BUILD_DEPENDS for claws-mail-attremover claws-mail-notification claws-mail-vcalendar edje efreet ewl imlib2 xorg-server xorg-xf86-input-evdev xorg-xf86-input-keyboard xorg-xf86-input-mouse xorg-xf86-video-ati xorg-xf86-video-nv xorg-xf86-video-vesa xorg-xkeyboard-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 17:10:38 2008 +0000 (2008-10-04)
parents a15028ca0a13
children 37105c976ab8
line source
1 # SliTaz package receipt
3 PACKAGE="locale-ru"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Russian locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
10 WEB_SITE="http://www.slitaz.org/"
12 CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad"
14 LOCALE="ru"
15 LOCALEDEF="ru_RU"
16 CHARMAP="KOI8-RU"
18 GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg
19 PKG_NAME="$PACKAGE"
20 PKG_VERS="$VERSION"
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 # Install files in /usr/lib/locale.
24 #
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/locale/$LOCALE
29 # Get the core apps messages.
30 for pkg in $CORE_PKGS
31 do
32 . $WOK/$pkg/receipt
33 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
34 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
35 $fs/usr/share/locale
36 fi
37 done
39 # Glibc locale.
40 cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale
42 PACKAGE="$PKG_NAME"
43 VERSION="$PKG_VERS"
45 # Gen locale files.
46 mkdir -p $fs/usr/lib/locale
47 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
48 }
50 # Post install to configure default locale.
51 post_install()
52 {
53 local root
54 root=$1
55 # locale.conf
56 if [ -s $root/etc/locale.conf ]; then
57 echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf
58 echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf
59 fi
60 }
62 # Back to C if it's the last used locale.
63 post_remove()
64 {
65 if grep -q $LOCALEDEF /etc/locale.conf; then
66 echo "LANG=C" > /etc/locale.conf
67 echo "LC_ALL=C" >> /etc/locale.conf
68 fi
69 }