diff options
Diffstat (limited to 'libre/icecat-l10n/PKGBUILD')
-rw-r--r-- | libre/icecat-l10n/PKGBUILD | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/libre/icecat-l10n/PKGBUILD b/libre/icecat-l10n/PKGBUILD index 193899a20..f014e7238 100644 --- a/libre/icecat-l10n/PKGBUILD +++ b/libre/icecat-l10n/PKGBUILD @@ -4,6 +4,8 @@ # Contributor: Luke Shumaker <lukeshu@parabola.nu> # Contributor: fauno <fauno@kiwwwi.com.ar> # Contributor: Figue <ffigue@gmail.com> +# Contributor: bill-auger <bill-auger@programmer.net> + _pkgbase=icecat pkgbase=${_pkgbase}-l10n @@ -22,38 +24,41 @@ license=('MPL' 'GPL') depends=("$_pkgbase=$pkgver") makedepends=('unzip' 'zip') -_src_url=http://ftp.gnu.org/gnu/gnuzilla/${pkgver%_*}/langpacks - pkgname=() -source=('region.properties' +source=(region.properties languages.${CARCH} sha512sums.${CARCH}) -_languages_x86_64_shasum="c259b9886024281a92fa8c834c673cf0dd34480a1ba227209872c5e923841d7f343d45885e245fe33b8ca3d24c7f2b527e6c49d6c665133781825076ee4f2cf9" -_languages_i686_shasum="215312aa1489de846eefd92881b09ded48da5b3340168f65b568d191d500c646023553d699ba1f4c5ec0d59b321facfebed14a910c0bcb385f4b729ab1a3fb2a" -_languages_armv7h_shasum="215312aa1489de846eefd92881b09ded48da5b3340168f65b568d191d500c646023553d699ba1f4c5ec0d59b321facfebed14a910c0bcb385f4b729ab1a3fb2a" -_languages_list_shasum="_languages_${CARCH}_shasum" - -_sha512sums_x86_64_shasum="776c748a73aea3766a0b4b69b0768bfaf6ad5294b7bb916497fe767c5b2c5ecd065f9e6793c7f6ee97287180664231332e980784a96efa47dd93f8a2f838093a" -_sha512sums_i686_shasum="f37875c1e34337da36626de8e90921828acd347db72d6de4ccfbd000ae075ae038f1084c261a7328cd44c4aa02fd7fb68d32710c3a7b7f04ada374ad15e58492" -_sha512sums_armv7h_shasum="f37875c1e34337da36626de8e90921828acd347db72d6de4ccfbd000ae075ae038f1084c261a7328cd44c4aa02fd7fb68d32710c3a7b7f04ada374ad15e58492" -_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=http://ftp.gnu.org/gnu/gnuzilla/${pkgver%_*}/langpacks for _lang in "${_languages[@]}"; do _locale=${_lang%% *} - _pkgname=$pkgbase-${_locale,,} + _pkgname=${pkgbase}-${_locale,,} - pkgname+=($_pkgname) - source+=("$_src_url/$_pkgbase-${pkgver%_*}.$_locale.langpack.xpi") + pkgname+=(${_pkgname}) + source+=(${_src_url}/${_pkgbase}-${pkgver%_*}.${_locale}.langpack.xpi) - eval "package_$_pkgname() { - _package $_lang + eval "package_${_pkgname}() { + _package ${_lang} }" done +# compile checksums +_languages_armv7h_shasum="215312aa1489de846eefd92881b09ded48da5b3340168f65b568d191d500c646023553d699ba1f4c5ec0d59b321facfebed14a910c0bcb385f4b729ab1a3fb2a" +_languages_i686_shasum="215312aa1489de846eefd92881b09ded48da5b3340168f65b568d191d500c646023553d699ba1f4c5ec0d59b321facfebed14a910c0bcb385f4b729ab1a3fb2a" +_languages_x86_64_shasum="c259b9886024281a92fa8c834c673cf0dd34480a1ba227209872c5e923841d7f343d45885e245fe33b8ca3d24c7f2b527e6c49d6c665133781825076ee4f2cf9" +_sha512sums_armv7h_shasum="f37875c1e34337da36626de8e90921828acd347db72d6de4ccfbd000ae075ae038f1084c261a7328cd44c4aa02fd7fb68d32710c3a7b7f04ada374ad15e58492" +_sha512sums_i686_shasum="f37875c1e34337da36626de8e90921828acd347db72d6de4ccfbd000ae075ae038f1084c261a7328cd44c4aa02fd7fb68d32710c3a7b7f04ada374ad15e58492" +_sha512sums_x86_64_shasum="776c748a73aea3766a0b4b69b0768bfaf6ad5294b7bb916497fe767c5b2c5ecd065f9e6793c7f6ee97287180664231332e980784a96efa47dd93f8a2f838093a" +sha512sums=('5d35275f6ccfbbce6ee37357e91df5a4d94b79dd6e78074c3b0e8640e190b0b7c1758186818b9e0ac681ca6c6859b5c84dbe4ca3d5ebbb350fd6a0d39f25252a' # region.properties + $(eval "echo \$_languages_${CARCH}_shasum") # languages.${CARCH} + $(eval "echo \$_sha512sums_${CARCH}_shasum") # sha512sums.${CARCH} + "${_sha512sums[@]}") + # Don't extract anything noextract=(${source[@]%%::*}) @@ -76,8 +81,3 @@ _package() { install -vDm644 langpack-$1@icecat.mozilla.org.xpi \ "$pkgdir/usr/lib/icecat/browser/extensions/langpack-$1@icecat.mozilla.org.xpi" } - -sha512sums=('5d35275f6ccfbbce6ee37357e91df5a4d94b79dd6e78074c3b0e8640e190b0b7c1758186818b9e0ac681ca6c6859b5c84dbe4ca3d5ebbb350fd6a0d39f25252a' - "${!_languages_list_shasum}" - "${!_sha512sums_list_shasum}" - "${_sha512sums[@]}") |