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