void-packages/srcpkgs/firefox-esr-i18n/template
2019-03-25 11:02:16 +01:00

232 lines
9 KiB
Bash

# Template file for 'firefox-esr-i18n'
pkgname=firefox-esr-i18n
version=60.6.1
revision=1
build_style=meta
homepage="https://www.mozilla.org/firefox/"
short_desc="Firefox ESR language packs"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MPL-2.0"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ach "Acholi"'
'af "Afrikaans"'
'an "Aragonese"'
'ar "Arabic"'
'as "Assamese"'
'ast "Asturian"'
'az "Azerbaijani"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'bn-IN "Bengali (India)"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'cak "Kaqchikel"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-GB "English (British)"'
'en-US "English (US)"'
'en-ZA "English (South African)"'
'eo "Esperanto"'
'es-AR "Spanish (Argentina)"'
'es-CL "Spanish (Chile)"'
'es-ES "Spanish (Spain)"'
'es-MX "Spanish (Mexico)"'
'et "Estonian"'
'eu "Basque"'
'fa "Persian"'
'ff "Fulah"'
'fi "Finnish"'
'fr "French"'
'fy-NL "Frisian"'
'ga-IE "Irish"'
'gd "Gaelic (Scotland)"'
'gl "Galician"'
'gn "Guarani"'
'gu-IN "Gujarati (India)"'
'he "Hebrew"'
'hi-IN "Hindi (India)"'
'hr "Croatian"'
'hsb "Upper Sorbian"'
'hu "Hungarian"'
'hy-AM "Armenian"'
'id "Indonesian"'
'is "Icelandic"'
'it "Italian"'
'ja "Japanese"'
'ka "Georgian"'
'kab "Kabyle"'
'kk "Kazakh"'
'km "Khmer"'
'kn "Kannada"'
'ko "Korean"'
'lij "Ligurian"'
'lt "Lithuanian"'
'lv "Latvian"'
'mai "Maithili"'
'mk "Macedonian"'
'ml "Malayalam"'
'mr "Marathi"'
'ms "Malay"'
'my "Burmese"'
'nb-NO "Norwegian (Bokmål)"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'or "Oriya"'
'pa-IN "Punjabi"'
'pl "Polish"'
'pt-BR "Portuguese (Brazilian)"'
'pt-PT "Portuguese (Portugal)"'
'rm "Romansh"'
'ro "Romanian"'
'ru "Russian"'
'si "Sinhala"'
'sk "Slovak"'
'sl "Slovenian"'
'son "Songhai"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'ta "Tamil"'
'te "Telugu"'
'th "Thai"'
'tr "Turkish"'
'uk "Ukrainian"'
'uz "Uzbek"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
depends="firefox-esr>=${version}"
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=firefox-esr-i18n-${_locale}
depends+=" ${_pkgname}>=${version}"
distfiles+=" ${MOZILLA_SITE}/firefox/releases/${version}esr/linux-i686/xpi/${_locale}.xpi"
eval "${_pkgname}_package() {
_pkgtmpl $_lang
}"
done
_pkgtmpl() {
_lang="$1"
depends="firefox-esr>=${version}"
conflicts="firefox-i18n-${_lang}>=0"
short_desc="Firefox ESR $2 language pack"
pkg_install() {
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/${_lang}.xpi 644 \
usr/lib/firefox/browser/extensions langpack-${_lang}@firefox.mozilla.org.xpi
}
}
checksum="e108868cd241dcc4db278477819f00bd1c1a27a4793a752e10ae9817734e78ac
03cc4124f6bbc865067d6cd7854b0df046b4f4fede27ac4cf557dc6e43604769
90b089175589374245864014b6e8f8ccfc4639faa8ba88049b9acd4fa2c08165
49d45f2ec51f021bf579c97698ca9a57cfd7deec58ae0153874c176527c15b58
b234e1dec20fafa97da1a93b109c3b39eedb944e58667e3b7a5e5340d4d1a6a3
183dd4ee637843aea0fc0d901fa4213357c5931937bbeb62c0c35e47621743f1
5188480e3db9a7e133ddd41cc14567454192e92b02fb77f7fbd99f2a194bac35
4c512b83de18509fa031cdd9d41a8f889d4e5aa663d1ce8f5e262f7dd55696f3
663cdf1ac4c615073cd65ae2147b5daaedb4bc9354a78bd4d15751eb82ceee86
fdb387542f876f18e4735d3fc30d0d44cc79372269efcf3eda40c70bb4671c09
464ec6a71614ecbe149dad3b6e60b007bbcbb098fb49610db7e2467c4444deb3
93295352288199b45e0e104855ba8658ebaa117ee90a8e06e9e661066711d18c
3373c4fa8f8918c54ee46cf30f07084869896fde5654b2d122ada14de57b819b
4c3dc5665343930d300b0e9c40b1ae0792ae9dd4a1b6e060cbfdca523811c57d
bfba9b728cdada7bc78799f6bce3faabbffd5f04fb5939cde54d9130c4cd94ee
f2a97d808cbf69f820bb3f91b949d353ecdbfe5d6776c21327c2b8607e979aaa
da8bf2f91ae991592faeffb58605299bcaac9bc47b117315392c122396f70d16
44f7fe074913d308cf97904b52a13d0fbdc6ba4671f09a1604f6bd5326ab17a5
9a7e7f53aeb23906cf6c90151d1a800467c6f6735fdd73668dd7390193dec27b
086d7e51adf157acbe1fad493ebb150e3a9acbfb1e2f8f9a63e1d9534b1c8874
f5672ab87efd8ba523b3c46990eae8f133f97fa78c2e09ac2ea335908d5b5222
4db96f4ebee2ea57b95b5eebe10cdc77f8071c9419cf517ccc4dc269eeed4f27
35e9bd0ddc841b37ed5ee3746f8b5603b4c5e1ebd5ef843caf224a602bf69516
7d44ecd7648a4e5ec75a4f7b1267acd1b590835fabcb3c0631c3049e0dfb06a8
cc923ca151bdaab348d410f81fe3f9ae5aec7a98ef49384d5345371276c4c7f3
4a4e7356b0758c1b74bd7426edd159ee87177420c4c052b0395f00c6fb66958b
58fec2e30332314e683261a69d2468275957a3c8e89deb4c32668ef817660ebc
ce6cefdea67b6f8bc687a88431c98a2633a0f1970130adcd8c92494d83e065a0
c73672fcb6daa35546b00571fd92b0b5e1893e79533933a74127348bd6bcd0d4
c63555569b422770cb7f8bacf3fa464473a7aa1aac432ed15fdfaf8e6fe03a48
d882456565c710e07acd775d39b87ad9c4b04e06d4bbc61c94009af07dadf0c6
049b63f837591944b19a0df5c81dc9b3e025094bcc029278d4415c59051be144
91c2f7c2075107ddfa39c31c65cc8ca3ae506eeca9507e5689dc0b25b213c9ca
c11b37f74f027c913ffd8c91ae0feaf84e45a9c54a9cf6977aaad47819548a65
8a4cd2b4570a609894a19cd6918d8b46c29f9c184b58e6cdea506ca686d827a0
341c302a5b3124eb98b6e45da6a0f7b6a49e5b02639a3f7d14458ef24604bea0
df328b1a89d179fac1d96074f736794f7520b8a3a21e368d56d53a386bfb4f68
983b2593702a558d02d27f9e470022ad41c9641427410232f63537be009009d2
49048e8405ac1426520c756b8caec87bf116e5f31fead32e6f03037dee4b1cc8
c9bd442082460daf84d2dae54679d2dadcdf393a3e07bd75a5ed8d41f5656680
8e89b8b8a30a5ac523f275dc1a4a80172377e9dc21b90e2b5c32aaee9a9ca732
cb83e53690879b040d6f84a3856ea700fd1d0e5a020ed5989b3e7aade4a7eded
6a46190ce2fad9b32c7dcf29484ed25f6ab6df044a86c60fa5bedb1f44be82a3
8a10b6b2814ca4f80285914262f4f85b75cd9239cdbd6dd384c51346f4c3ff98
eec20c9fa8a0422c6264a8441c096a3097ad38e7f95eb790c4dc716c168421d2
cdedc76dfff3f8f08e81d2ab086391afdb2102ee91061ff2e1587fca966ea502
dedb1c572f80c90c100666fe64ab4ab5a30224119ea4c515004bb51787fcffa2
13d7d33c8fbe2ff711857f5e60e061fd00f814da315f8f09ab6a9a87b3b6bbac
5775c4e1da0ebdd941e93aaba9f18c1f384b574c2a9626c856a3703d9f47ae58
6f9a1a28f93c0cf45748ad6be1c54ba901bcc23902c7c4cb1fc4f355a7c6c39b
c7ce1cbb90b59acfc63b37aefd084b1c386c91f4f37a2ead42dc75164ec82a43
2499f158203f7755dfd90701c4801db1b2bbfd073b6ae17e26eed7bb3ae91e33
74972e3ed4ed94b968f86c6ac4ee6f4cecaf24fe369d20090085134113f907ba
eac96decf01c5dc2f4f72ecb64f57f74811d75fc8c3d1b08a367b1175d6adca7
5173b34bd7e62a08200649e23fb5794416f1073e4a08f902493f8388582b8f7f
4c4c18d4036e1c9be744c979e8a9e165df6733f6421323d1d764e21c9bcae664
ea6caaa517243297fcfa8f508622aa207712e6a7f8b12de30b886c33c496d3db
d523531e1ef4dedb13babf4cfb350fb6f88922ceaa89e00f8e5934571e3be2e4
db83a698445d429a29dfb5ba47eb61faa2a2653946677d1bec9fbfcfccacaa46
7be53d5a2b718e3d9e8dbe934a445fbbe65043806e6c85bf7611b5dfe2083097
5350e9b39e83aa6c179647c94a2bc974ceef7b39215f36abd3e16e75373c4726
8ba4612ca2df1f7c5d7140c0caa445a41f8c26be12b13d414f7f0e28f3877931
52bfc681cbb8df5078d27076d52846cf2c4668e649c028fb02aec70e6d973e37
137d1b308e71570b39c05cdcee1aee8e55a0c4d7ed8c7f0df9cebca9d2b68b94
57d58fedfcc195cd6a1163369c3d235bbbd641a1131a8ef3a47f40c670f9f64d
f74100f18bad699266820dbe22af9951fd936fc686f021b0e9a3e506cad79968
7571be9bd68bedd59431106df2b9d2e10f74bf25e5b74e773f81b179e1209801
f6e09ff5465abc502375babed3d67f2e17ddfd395e76ed289a0d4d8e695f0e88
a5a87693171289135304468730b79248d9885e46337540fd1c25508127a95b83
3391cddd7390af429669de21500e9be6457766a6c88667f4159eafa4adbc0c1d
25e8efb44482b72523ccf8e2d5d9a3e126810ee98a820af6484a4f0690482b22
2382bc6f78f011556f521b7a875f70b6798cff0269478138417f834bf52f8481
9cedffb30e9c499e50afb8787173c856d416c8cbfd20755ea94462b7937e2bc1
bf9cb87ec9889cf3ff05fa2ab068ce647687ad4dda637548a4ff4973a0d613ce
937aeef52042a16bba010b7adb3af5a0eb89d5e82725f957cab4acc058d03fdc
fa95e7dbb1b675dd72f16e701e57f9afee054b3620395ed5f85c9c800fcb5a82
b58fef5f148ebdce500b0e76d0d6391ecccd90a7435e33775d7a115778ac3828
8667c9f9e685b0827814a0a74a3720bc79ea12178defb118480d017dd05e5120
9836be0c8f99fbfa8a376ee1036a9bde84df5ce53879c846c243876cd1e80b05
fd3df7d54c8e338eb2cb43962e7dc5eab8b7be307533cc6ea0a003dbdfbb512c
998290af945d5a5b5ba1203bbc53145c44062673cbb4ae117fa4312c51be90f6
0d0af6eee2c7386522a8ecd4b9ca51298c650886dbd8a694bf7f35241d0d4d6f
cc1965c72b0d2d3e6a45446e3014ec9bb829f191f3e838a0c25bf15a1d12fbf9
4d8a656554a63675d2d959d1dbbabcb848644edcc2b196888b87408a5e568499
819ca3b88c9fbd7ca1e2d2acf8cae1cc4c39f332693ca0cdfa630a54551e9c1f
a59374a66fce7cf1995f4116cbe65e9c6ea61bba47ae212aba1bbc4752770ff1
6ef2e532479b261f7d9246dae38adb1f6c6bd3f4b22585d30589943d3ab2857e
848d8d148198d9ba241c75b197f08756c0bc613c5daa439f5d40f308bac494a2
ba1c6c7d8e60991c69953f311010982e8afa2ef9a6a8ef258da17656ead417ef
7e14d3894044c1cabe3610256b1e1238359136a33d637219e9fda522fd5ed9a0
b04cb8983814b890472090137142f6f778f17c8e88e0b71041be1b6b1339586b
152cdfef2bfb4ac36a6946ce2ab2e51df40e6cd6706b8c11ec01e9a6eb7a1472
93f5b60c9b7909f07cf2ee92fdd707a65fdf214e9c5e6682672f3ccc10b4d560
fe5394fba090a5a3b4252a9e74e35b3e337bd985ac685b6d6e3b7dec814e0bba"