wok-next view thunderbird-langpack/receipt @ rev 21527
updated bootchart (0.9 -> 1.20)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 15:06:45 2020 +0100 (2020-06-19) |
parents | fc8399b41cda |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="thunderbird-langpack"
4 VERSION="17.0.11esr"
5 CATEGORY="meta"
6 SHORT_DESC="Thunderbird language pack"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.thunderbird.net/en-GB/"
10 HOST_ARCH="any"
11 REPOLOGY="-"
13 SPLIT="\
14 $PACKAGE-cs $PACKAGE-da $PACKAGE-de $PACKAGE-el $PACKAGE-en_GB \
15 $PACKAGE-en_US $PACKAGE-es_AR $PACKAGE-es_ES $PACKAGE-fr $PACKAGE-hu \
16 $PACKAGE-id $PACKAGE-it $PACKAGE-pl $PACKAGE-pt_BR $PACKAGE-pt_PT \
17 $PACKAGE-ru $PACKAGE-sl $PACKAGE-sv_SE $PACKAGE-zh_CN $PACKAGE-zh_TW"
18 COOKOPTS="!strip" # waste of time to search, nothing to strip
20 compile_rules() {
21 for i in $SPLIT; do
22 lang=${i##*-}
23 Lang=${lang/_/-}
24 TARBALL="$PACKAGE-$lang-$VERSION.zip"
25 WGET_URL="http://ftp.mozilla.org/pub/thunderbird/releases/$VERSION/linux-i686/xpi/$Lang.xpi"
26 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
28 extdir="$install/usr/lib/thunderbird-$VERSION/extensions/langpack-$Lang@thunderbird.mozilla.org"
29 mkdir -p $extdir
30 unzip -q $SRC/$TARBALL -d $extdir
32 find $install -type f -name '.mkdir.done' -delete
33 for i in mac win; do
34 rm -r $extdir/chrome/$Lang/locale/$Lang/global-platform/$i
35 done
36 done
37 }
39 genpkg_rules() {
40 [ "$PACKAGE" == 'thunderbird-langpack' ] && return
41 lang="${PACKAGE##*-}"
42 copy langpack-${lang/_/-}@thunderbird.mozilla.org/
43 case $lang in
44 cs) desc="Czech";;
45 da) desc="Danish";;
46 de) desc="German";;
47 el) desc="Greek";;
48 en_GB) desc="British English";;
49 en_US) desc="American English";;
50 es_AR) desc="Argentinian Spanish";;
51 es_ES) desc="Spanish";;
52 fr) desc="French";;
53 hu) desc="Hungarian";;
54 id) desc="Indonesian";;
55 it) desc="Italian";;
56 pl) desc="Polish";;
57 pt_BR) desc="Brazilian Portuguese";;
58 pt_PT) desc="Portuguese";;
59 ru) desc="Russian";;
60 sl) desc="Slovenian";;
61 sv_SE) desc="Swedish";;
62 zh_CN) desc="Simplified Chinese";;
63 zh_TW) desc="Chinese Traditional";;
64 esac
65 CAT="localization|$desc"
66 DEPENDS="thunderbird"
67 }