From 226146ba31eb274da72b45b528e1969cc3c3a4a5 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Mon, 11 Jan 2021 23:35:53 -0500 Subject: [icecat-l10n][icedove-l10n][iceweasel-l10n]: housekeeping --- libre/iceweasel-l10n/PKGBUILD | 51 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'libre/iceweasel-l10n') diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD index 7e3cb90a7..bc1cdcba8 100644 --- a/libre/iceweasel-l10n/PKGBUILD +++ b/libre/iceweasel-l10n/PKGBUILD @@ -9,6 +9,7 @@ # Contributor: Luke Shumaker # Contributor: fauno # Contributor: Figue +# Contributor: bill-auger # parabola changes and rationale: @@ -31,11 +32,9 @@ pkgdesc="Language pack for ${_pkgbase^}" arch=('armv7h' 'i686' 'x86_64') url=https://wiki.parabola.nu/iceweasel license=(MPL GPL LGPL) -depends=(iceweasel=$epoch:$pkgver) +depends=(iceweasel=${epoch}:${pkgver}) makedepends=('unzip' 'zip' 'mozilla-searchplugins') -_src_url=https://ftp.mozilla.org/pub/firefox/releases/${pkgver}/linux-x86_64/xpi - pkgname=() source=(brand.dtd brand.properties @@ -43,31 +42,38 @@ source=(brand.dtd languages.${CARCH} sha512sums.${CARCH}) -_languages_x86_64_shasum="e27aa22697942c950c71a6466a70579d326bcce5cc547592c4b1fe0c9b4fa819f7fd7c2a354f2982d65d16f8bb7997635d9b9344d68330eec979e03258b5e5e7" -_languages_i686_shasum="e27aa22697942c950c71a6466a70579d326bcce5cc547592c4b1fe0c9b4fa819f7fd7c2a354f2982d65d16f8bb7997635d9b9344d68330eec979e03258b5e5e7" -_languages_armv7h_shasum="c259b9886024281a92fa8c834c673cf0dd34480a1ba227209872c5e923841d7f343d45885e245fe33b8ca3d24c7f2b527e6c49d6c665133781825076ee4f2cf9" -_languages_list_shasum="_languages_${CARCH}_shasum" - -_sha512sums_x86_64_shasum="8e10ce99b914252cc08015959c40e845d55df0fb94de47a0e5f1c4c93d50bdc29c7bfbb058d205eaf91645c34c606fcb6d232e866e19c0601dac8ba3496f52ff" -_sha512sums_i686_shasum="8e10ce99b914252cc08015959c40e845d55df0fb94de47a0e5f1c4c93d50bdc29c7bfbb058d205eaf91645c34c606fcb6d232e866e19c0601dac8ba3496f52ff" -_sha512sums_armv7h_shasum="ba69d1ac848440397617011bf94fdffd83bdda39c21bcb6ddfcf621e76db380bf5ec0e2afe535e226efd450506dd90594f47ab12e84705efc09c3bf7cca31359" -_sha512sums_list_shasum="_sha512sums_${CARCH}_shasum" - -# parse locales and package names from language list files -source languages.${CARCH} # sets $_languages +# load languages list and .xpi checksums +source languages.${CARCH} # sets $_languages source sha512sums.${CARCH} # sets $_sha512sums + +# compile package names and .xpi sources +_src_url=https://ftp.mozilla.org/pub/firefox/releases/${pkgver}/linux-x86_64/xpi for _lang in "${_languages[@]}"; do _locale=${_lang%% *} - _pkgname=$pkgbase-${_locale,,} + _pkgname=${pkgbase}-${_locale,,} pkgname+=($_pkgname) - source+=("$pkgbase-$pkgver-$_locale.xpi::$_src_url/$_locale.xpi") + source+=(${pkgbase}-${pkgver}-${_locale}.xpi::${_src_url}/${_locale}.xpi) - eval "package_$_pkgname() { - _package $_lang + eval "package_${_pkgname}() { + _package ${_lang} }" done +# compile checksums +_languages_armv7h_shasum="c259b9886024281a92fa8c834c673cf0dd34480a1ba227209872c5e923841d7f343d45885e245fe33b8ca3d24c7f2b527e6c49d6c665133781825076ee4f2cf9" +_languages_i686_shasum="e27aa22697942c950c71a6466a70579d326bcce5cc547592c4b1fe0c9b4fa819f7fd7c2a354f2982d65d16f8bb7997635d9b9344d68330eec979e03258b5e5e7" +_languages_x86_64_shasum="e27aa22697942c950c71a6466a70579d326bcce5cc547592c4b1fe0c9b4fa819f7fd7c2a354f2982d65d16f8bb7997635d9b9344d68330eec979e03258b5e5e7" +_sha512sums_armv7h_shasum="ba69d1ac848440397617011bf94fdffd83bdda39c21bcb6ddfcf621e76db380bf5ec0e2afe535e226efd450506dd90594f47ab12e84705efc09c3bf7cca31359" +_sha512sums_i686_shasum="8e10ce99b914252cc08015959c40e845d55df0fb94de47a0e5f1c4c93d50bdc29c7bfbb058d205eaf91645c34c606fcb6d232e866e19c0601dac8ba3496f52ff" +_sha512sums_x86_64_shasum="8e10ce99b914252cc08015959c40e845d55df0fb94de47a0e5f1c4c93d50bdc29c7bfbb058d205eaf91645c34c606fcb6d232e866e19c0601dac8ba3496f52ff" +sha512sums=('bfe82e11a3a1b8006b58a54897f297bd17191ca2e7b08f95d66ec6bfe356caf9eb4d96b3dde5f36db0331d012bde2f03e7087aad1e087800b404f82fa9d786ad' # brand.dtd + 'a1a7e44f3358b131157d2acec243d35ef234e42a6522edfa5b2be9b497a65b2227c64b7fb989c0780c55333c0075f8f2198d99cde8f602bb3f9b8619dc57ab2c' # brand.properties + '31d33e90be1b5c0e76a0c374684f9a7b4076f7bcca8b76309048b2e3fc7f27c0bc8a2a9f9e66bd8c51fe8780a52a1011c540b071dc82f78d72a1d5ad29fee4f9' # region.properties + $(eval "echo \$_languages_${CARCH}_shasum") # languages.${CARCH} + $(eval "echo \$_sha512sums_${CARCH}_shasum") # sha512sums.${CARCH} + "${_sha512sums[@]}") + # Don't extract anything noextract=(${source[@]%%::*}) @@ -101,10 +107,3 @@ _package() { install -Dm644 $pkgbase-$pkgver-$1.xpi \ "$pkgdir/usr/lib/iceweasel/browser/extensions/langpack-$1@firefox.mozilla.org.xpi" } - -sha512sums=('bfe82e11a3a1b8006b58a54897f297bd17191ca2e7b08f95d66ec6bfe356caf9eb4d96b3dde5f36db0331d012bde2f03e7087aad1e087800b404f82fa9d786ad' # brand.dtd - 'a1a7e44f3358b131157d2acec243d35ef234e42a6522edfa5b2be9b497a65b2227c64b7fb989c0780c55333c0075f8f2198d99cde8f602bb3f9b8619dc57ab2c' # brand.properties - '31d33e90be1b5c0e76a0c374684f9a7b4076f7bcca8b76309048b2e3fc7f27c0bc8a2a9f9e66bd8c51fe8780a52a1011c540b071dc82f78d72a1d5ad29fee4f9' # region.properties - "${!_languages_list_shasum}" - "${!_sha512sums_list_shasum}" - "${_sha512sums[@]}") -- cgit v1.2.3