wok-next view slitaz-i18n-extra/receipt @ rev 20701

tor: update (b)deps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 25 01:13:33 2018 +0300 (2018-05-25)
parents c667db027c32
children cd7906120828
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slitaz-i18n-extra"
4 VERSION="6.0"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz internationalization"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
11 # Bdeps ensure packages are built so we can get generated po files.
12 #BUILD_DEPENDS="gimp mplayer xine-ui abiword gnumeric sylpheed gftp geany"
14 SPLIT="locale-ar-extra locale-ca-extra locale-cs-extra locale-da-extra \
15 locale-de-extra locale-el-extra locale-es-extra locale-fr-extra \
16 locale-hu-extra locale-id-extra locale-it-extra locale-pl-extra \
17 locale-pt-extra locale-pt_BR-extra locale-ru-extra locale-sl-extra \
18 locale-sv-extra locale-zh_CN-extra locale-zh_TW-extra"
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 case $PACKAGE in
24 slitaz-i18n-extra)
25 . $stuff/locale-pack.conf
26 for p in $EXTRA_PKGS; do
27 [ -d "$WOK/$p/install" ] || echo "Missing in wok: $p"
28 done
29 CAT="meta|meta package to build extra locale pack"
30 ;;
31 *)
32 lang_code="$(echo $PACKAGE | cut -d- -f2)"
33 case $lang_code in
34 ar) l="Arabic";;
35 ca) l="Catalan";;
36 cs) l="Czech";;
37 da) l="Danish";;
38 de) l="German";;
39 el) l="Greek";;
40 es) l="Spanish";;
41 fr) l="French";;
42 hu) l="Hungarian";;
43 id) l="Indonesian";;
44 it) l="Italian";;
45 pl) l="Polish";;
46 pt) l="Portuguese";;
47 pt_BR) l="Brazilian Portuguese";;
48 ru) l="Russian";;
49 sl) l="Slovenian";;
50 sv) l="Swedish";;
51 zh_CN) l="Simplified Chinese";;
52 zh_TW) l="Traditional Chinese";;
53 esac
54 CAT="localization|extra $l locale pack"
55 DEPENDS="locale-$lang_code"
56 LOCALE="$lang_code"
57 . $stuff/locale-pack.functions
58 . $stuff/locale-pack.conf
59 mk_locale_dir
60 get_extra_messages
61 ;;
62 esac
63 }