wok-next diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/firefox-langpack/receipt	Tue Oct 02 04:53:44 2018 +0300
     1.3 @@ -0,0 +1,57 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="firefox-langpack"
     1.7 +VERSION="17.0.11esr"
     1.8 +CATEGORY="meta"
     1.9 +SHORT_DESC="Firefox language pack"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="MPL2"
    1.12 +WEB_SITE="http://www.mozilla.org/firefox"
    1.13 +HOST_ARCH="any"
    1.14 +REPOLOGY="-"
    1.15 +
    1.16 +SPLIT="$PACKAGE-da $PACKAGE-de $PACKAGE-en_GB $PACKAGE-es_ES $PACKAGE-fr \
    1.17 +$PACKAGE-id $PACKAGE-it $PACKAGE-pt_BR $PACKAGE-pt_PT $PACKAGE-ru \
    1.18 +$PACKAGE-zh_CN $PACKAGE-zh_TW"
    1.19 +COOKOPTS="!strip" # waste of time to search, nothing to strip
    1.20 +
    1.21 +compile_rules() {
    1.22 +	for i in $SPLIT; do
    1.23 +		lang=${i##*-}
    1.24 +		Lang=${lang/_/-}
    1.25 +		TARBALL="$PACKAGE-$lang-$VERSION.zip"
    1.26 +		WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/xpi/$Lang.xpi"
    1.27 +		[ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
    1.28 +
    1.29 +		extdir="$install/usr/lib/firefox-$VERSION/extensions/langpack-$Lang@firefox.mozilla.org"
    1.30 +		mkdir -p $extdir
    1.31 +		unzip -q $SRC/$TARBALL -d $extdir
    1.32 +
    1.33 +		find $install -type f -name '.mkdir.done' -delete
    1.34 +		for i in mac win; do
    1.35 +			rm -r $extdir/chrome/$Lang/locale/$Lang/global-platform/$i
    1.36 +		done
    1.37 +	done
    1.38 +}
    1.39 +
    1.40 +genpkg_rules() {
    1.41 +	[ "$PACKAGE" == 'firefox-langpack' ] && return
    1.42 +	lang="${PACKAGE##*-}"
    1.43 +	copy langpack-${lang/_/-}@firefox.mozilla.org/
    1.44 +	case $lang in
    1.45 +		da)    desc="Danish";;
    1.46 +		de)    desc="German";;
    1.47 +		en_GB) desc="British English";;
    1.48 +		es_ES) desc="Spanish";;
    1.49 +		fr)    desc="French";;
    1.50 +		id)    desc="Indonesian";;
    1.51 +		it)    desc="Italian";;
    1.52 +		pt_BR) desc="Brazilian Portuguese";;
    1.53 +		pt_PT) desc="Portuguese";;
    1.54 +		ru)    desc="Russian";;
    1.55 +		zh_CN) desc="Simplified Chinese";;
    1.56 +		zh_TW) desc="Chinese Traditional";;
    1.57 +	esac
    1.58 +	CAT="localization|$desc"
    1.59 +	DEPENDS="firefox"
    1.60 +}