wok view slitaz-i18n/receipt @ rev 14908

slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 03 17:37:48 2013 +0300 (2013-08-03)
parents 66feb7f9e198
children b042fcb86c79
line source
1 # SliTaz package receipt
3 PACKAGE="slitaz-i18n"
4 VERSION="4.1"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz internationalization meta package to build locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://www.slitaz.org/"
10 # Bdeps ensure packages are built so we can get generated po files.
11 BUILD_DEPENDS="acl alsaplayer alsa-utils asunder atk attr dialog e2fsprogs \
12 epdfview galculator gcc-lib-base gcolor2 gdk-pixbuf glib glibc-base \
13 gparted gtk+ isomaster kbd leafpad libwebkit lostirc lxappearance lxpanel \
14 lxrandr lxtask mhwaveedit midori mtpaint nano obconf openbox parcellite parted \
15 spacefm popt retawq sakura transmission viewnior yad lxsession lxsession-edit \
16 lxinput"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/share/doc/slitaz
22 . $stuff/locale-pack.conf
23 for p in $CORE_PKGS
24 do
25 if [ ! -d "$WOK/$p/install" ]; then
26 if [ -x /usr/bin/cook ]; then
27 cook $p
28 else
29 tazwok cook $p
30 fi
31 fi
32 done
33 # Cook all locale pack.
34 for i in $LOCALE_PACK
35 do
36 if [ -x /usr/bin/cook ]; then
37 cook locale-$i
38 elif [ -x /usr/bin/tazwok ]; then
39 tazwok cook locale-$i
40 fi
41 done
42 cat > $fs/usr/share/doc/slitaz/i18n.txt << EOT
43 SliTaz i18n information
44 ================================================================================
46 This package provides the necessary functions and configs for the SliTaz locale
47 pack. SliTaz uses UTF-8 by default and tazlocale (from SliTaz tools) to
48 configure the system language.
51 Translated packages files included in the core languages pack (from upstream):
52 ----
53 $CORE_PKGS
54 ----
56 SliTaz i18n project coordination is done on the SCN and doc is on the website:
58 http://www.slitaz.org/i18n.php
61 ================================================================================
62 EOT
63 }