wok-next view firefox-langpack/receipt @ rev 20989
Update cairo-dock-plugins, combine firefox-langpack-* and thunderbird-langpack-*, small fixes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 02 04:53:44 2018 +0300 (2018-10-02) |
parents | |
children | d5aab818505e |
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="http://www.mozilla.org/firefox"
10 HOST_ARCH="any"
11 REPOLOGY="-"
13 SPLIT="$PACKAGE-da $PACKAGE-de $PACKAGE-en_GB $PACKAGE-es_ES $PACKAGE-fr \
14 $PACKAGE-id $PACKAGE-it $PACKAGE-pt_BR $PACKAGE-pt_PT $PACKAGE-ru \
15 $PACKAGE-zh_CN $PACKAGE-zh_TW"
16 COOKOPTS="!strip" # waste of time to search, nothing to strip
18 compile_rules() {
19 for i in $SPLIT; do
20 lang=${i##*-}
21 Lang=${lang/_/-}
22 TARBALL="$PACKAGE-$lang-$VERSION.zip"
23 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/xpi/$Lang.xpi"
24 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
26 extdir="$install/usr/lib/firefox-$VERSION/extensions/langpack-$Lang@firefox.mozilla.org"
27 mkdir -p $extdir
28 unzip -q $SRC/$TARBALL -d $extdir
30 find $install -type f -name '.mkdir.done' -delete
31 for i in mac win; do
32 rm -r $extdir/chrome/$Lang/locale/$Lang/global-platform/$i
33 done
34 done
35 }
37 genpkg_rules() {
38 [ "$PACKAGE" == 'firefox-langpack' ] && return
39 lang="${PACKAGE##*-}"
40 copy langpack-${lang/_/-}@firefox.mozilla.org/
41 case $lang in
42 da) desc="Danish";;
43 de) desc="German";;
44 en_GB) desc="British English";;
45 es_ES) desc="Spanish";;
46 fr) desc="French";;
47 id) desc="Indonesian";;
48 it) desc="Italian";;
49 pt_BR) desc="Brazilian Portuguese";;
50 pt_PT) desc="Portuguese";;
51 ru) desc="Russian";;
52 zh_CN) desc="Simplified Chinese";;
53 zh_TW) desc="Chinese Traditional";;
54 esac
55 CAT="localization|$desc"
56 DEPENDS="firefox"
57 }