wok annotate 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 |
rev | line source |
---|---|
pankso@3087 | 1 # SliTaz package receipt |
pankso@3087 | 2 |
pankso@3087 | 3 PACKAGE="slitaz-i18n" |
al@14908 | 4 VERSION="4.1" |
pankso@10751 | 5 CATEGORY="meta" |
paul@4858 | 6 SHORT_DESC="SliTaz internationalization meta package to build locale pack." |
pankso@3087 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@10751 | 8 WEB_SITE="http://www.slitaz.org/" |
pankso@10751 | 9 |
pankso@10751 | 10 # Bdeps ensure packages are built so we can get generated po files. |
al@14225 | 11 BUILD_DEPENDS="acl alsaplayer alsa-utils asunder atk attr dialog e2fsprogs \ |
al@14908 | 12 epdfview galculator gcc-lib-base gcolor2 gdk-pixbuf glib glibc-base \ |
al@14908 | 13 gparted gtk+ isomaster kbd leafpad libwebkit lostirc lxappearance lxpanel \ |
al@14225 | 14 lxrandr lxtask mhwaveedit midori mtpaint nano obconf openbox parcellite parted \ |
al@14908 | 15 spacefm popt retawq sakura transmission viewnior yad lxsession lxsession-edit \ |
al@14908 | 16 lxinput" |
pankso@3087 | 17 |
pankso@3087 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3087 | 19 genpkg_rules() |
pankso@3087 | 20 { |
pankso@3087 | 21 mkdir -p $fs/usr/share/doc/slitaz |
slaxemulator@9720 | 22 . $stuff/locale-pack.conf |
pankso@10751 | 23 for p in $CORE_PKGS |
pankso@10751 | 24 do |
gokhlayeh@11390 | 25 if [ ! -d "$WOK/$p/install" ]; then |
gokhlayeh@11390 | 26 if [ -x /usr/bin/cook ]; then |
gokhlayeh@11390 | 27 cook $p |
gokhlayeh@11390 | 28 else |
gokhlayeh@11390 | 29 tazwok cook $p |
gokhlayeh@11390 | 30 fi |
gokhlayeh@11390 | 31 fi |
pankso@10751 | 32 done |
pankso@10751 | 33 # Cook all locale pack. |
pankso@6788 | 34 for i in $LOCALE_PACK |
pankso@6788 | 35 do |
slaxemulator@9720 | 36 if [ -x /usr/bin/cook ]; then |
slaxemulator@9720 | 37 cook locale-$i |
slaxemulator@9720 | 38 elif [ -x /usr/bin/tazwok ]; then |
slaxemulator@9720 | 39 tazwok cook locale-$i |
slaxemulator@9720 | 40 fi |
pankso@6788 | 41 done |
pankso@10783 | 42 cat > $fs/usr/share/doc/slitaz/i18n.txt << EOT |
pankso@4855 | 43 SliTaz i18n information |
pankso@3087 | 44 ================================================================================ |
pankso@3087 | 45 |
paul@4858 | 46 This package provides the necessary functions and configs for the SliTaz locale |
paul@4858 | 47 pack. SliTaz uses UTF-8 by default and tazlocale (from SliTaz tools) to |
paul@4858 | 48 configure the system language. |
pankso@4855 | 49 |
pankso@3087 | 50 |
paul@4858 | 51 Translated packages files included in the core languages pack (from upstream): |
pankso@3087 | 52 ---- |
pankso@3087 | 53 $CORE_PKGS |
pankso@3087 | 54 ---- |
pankso@3087 | 55 |
pankso@10751 | 56 SliTaz i18n project coordination is done on the SCN and doc is on the website: |
pankso@3087 | 57 |
pankso@10751 | 58 http://www.slitaz.org/i18n.php |
pankso@3087 | 59 |
pankso@3087 | 60 |
pankso@3087 | 61 ================================================================================ |
pankso@10783 | 62 EOT |
pankso@3087 | 63 } |