wok-next view firefox-langpack/receipt @ rev 21402
updated php (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 07:47:41 2020 +0100 (2020-04-21) |
parents | fc8399b41cda |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-langpack"
4 VERSION="17.0.11esr"
5 CATEGORY="meta"
6 SHORT_DESC="Firefox language pack"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.mozilla.org/en-US/firefox/"
10 HOST_ARCH="any"
11 REPOLOGY="-"
13 SPLIT="\
14 $PACKAGE-da $PACKAGE-de $PACKAGE-en_GB $PACKAGE-es_ES $PACKAGE-fr \
15 $PACKAGE-id $PACKAGE-it $PACKAGE-pt_BR $PACKAGE-pt_PT $PACKAGE-ru \
16 $PACKAGE-zh_CN $PACKAGE-zh_TW"
17 COOKOPTS="!strip" # waste of time to search, nothing to strip
19 compile_rules() {
20 for i in $SPLIT; do
21 lang=${i##*-}
22 Lang=${lang/_/-}
23 TARBALL="$PACKAGE-$lang-$VERSION.zip"
24 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/xpi/$Lang.xpi"
25 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
27 extdir="$install/usr/lib/firefox-$VERSION/extensions/langpack-$Lang@firefox.mozilla.org"
28 mkdir -p $extdir
29 unzip -q $SRC/$TARBALL -d $extdir
31 find $install -type f -name '.mkdir.done' -delete
32 for i in mac win; do
33 rm -r $extdir/chrome/$Lang/locale/$Lang/global-platform/$i
34 done
35 done
36 }
38 genpkg_rules() {
39 [ "$PACKAGE" == 'firefox-langpack' ] && return
40 lang="${PACKAGE##*-}"
41 copy langpack-${lang/_/-}@firefox.mozilla.org/
42 case $lang in
43 da) desc="Danish";;
44 de) desc="German";;
45 en_GB) desc="British English";;
46 es_ES) desc="Spanish";;
47 fr) desc="French";;
48 id) desc="Indonesian";;
49 it) desc="Italian";;
50 pt_BR) desc="Brazilian Portuguese";;
51 pt_PT) desc="Portuguese";;
52 ru) desc="Russian";;
53 zh_CN) desc="Simplified Chinese";;
54 zh_TW) desc="Chinese Traditional";;
55 esac
56 CAT="localization|$desc"
57 DEPENDS="firefox"
58 }