void-packages/srcpkgs/firefox-i18n/template

234 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=62.0
revision=1
build_style=meta
homepage="https://www.mozilla.org/firefox/"
short_desc="Firefox language packs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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>=${version}"
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=firefox-i18n-${_locale}
depends+=" ${_pkgname}>=${version}"
distfiles+=" ${MOZILLA_SITE}/firefox/releases/${version}/linux-i686/xpi/${_locale}.xpi"
eval "${_pkgname}_package() {
_pkgtmpl $_lang
}"
done
_pkgtmpl() {
_lang="$1"
depends="firefox>=${version}"
conflicts="firefox-esr-i18n-${_lang}>=0"
short_desc="Firefox $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="
e04f2536413cbf2c114a722090e9ab85f57fec0101c80f7da39302eca5995990
b867355a4a704cd247206b0eb2aa773e0bff89448e475dddb6bbb94fca69a615
bbe8f8a605061edd7264ae6e766ad533d7d073cdc20dc3a96346f18bc2fee8d3
f0bdd3f3293716e161e5e3e43cdaecf3e67ff0b3d5a35d96789f1a9651b7f249
e694594f325821d5cca94a75cde0f85ff35ebd74b4422e40fd9d575d2aafd874
09ab4fbb3e597facbb13910c0f159375999010c91475a992d29e5837eed8b5ea
05816dbe835624016aad3bcbf4d4b73158760c359c90548e164f45f707c8750c
bb73c704e88b6981568b1282e7ca0d88c92ec1ae295010ad32c9d7769ba120e6
0cafdc2582373c2acfc1b4d5c0c69e64c3f749d91298a692ff62e2fa5c2994f4
33c72fd228565cdd0c4c84c26192dc3bc2a2d433820c879b1ed40ec679ede3ee
5956f019ee31898a349e7140aa4539291c7bede9ec09ef7dd8d79a940338d209
2beb6ad17558f8073ee0afebd3ebcbaf9a6027d70a9eaeccf5cce24eb42f7402
e553a282d165553aeab25132485a4798afaac60e6339760eac0ba4b7c60bdfad
a6c1907cd249d79dfa21ebeafd2c151c986d7f797175460d8ce784115a20a07f
8721de3628577a1725b896206daf3de4570b4bb9d4d7c89ef1eb6d36ecc7e1bf
744e91d22b13dd9a3f6200a91b2d891dc000b28784e03ac5e6f94b76b1d6fb32
7cffb67efb44ca0ccbad4b8e9f70340d481414d8aae42a62c83a872624bfcf98
c7832965c8de20cc5d1748f341eb818c07c38387e4dc280cb05a48561ffdfe72
ebf0933532eaf874ff8ae771c5ad965ced4f2cb6de9f20993384a12e6a7bfa97
2f5aa9c041f3ebb212551c747f1a6206b27876b5b9325f23265d70bd593ecc79
02c76d88ed5d86a6b529e54395f81c492529fea74726e11de919ffadb710b902
21f1c2a593e046c6989bd15d021600648681bc57add17ee5bce8f1b7dd0e364d
f48cf3c27869c884d7d264357bbe7bf7118c7478fc2b31156c81d6baee27767f
bc6449726d4a5083edcbdba776cdcec727c882989d000cf1be926f50ddf42637
189a48340d273b914c95ef86ed69a9d09e9cdf4c0aaee8335bac230d47f62d3d
5efaf5928e2d86111542ea8afc89f95bc50c314154a170bbbee5270df582d090
8a93437e91f0ff4decdf349e0764962a2ed89ff5b25d7d55b5e04651c9140990
25f2ff1478f60d0c9ad9371492bf313b5369ecfafc150fd5bae8540de1584bfb
0561a2856dceb2be398282cdcff8d4e559269e09d8c2832fc069f9b3e1ee8895
f7f4dcf932eef92f48c1b9365c69344b1336f7508f027ba557b96e1450eb36a0
6dc61ba71654b95bf4a69c06bd626234aa49d6e012e80dd7138b897f2f1429d5
29874d32059543eb9a61e5022fa8c516ab3e0e773aeef8e13010161bdc9d9715
c32700d61e46a1f24c2a641fcbc1cc0ffe04fc6f2c27ce57b231301f312f0fbb
c9501d742b37ef213e7f1cbbda397e2493822f0b04a932aa4fa3370d07ddd89c
a587c8d4070a5dbc7e756119c5fb204dea3a28d640d685f645e62b48b4249f93
7fa878c562fdbe29d0b1b8bd412dad903ed59d1fa4ffe11201d7ef0c21027ba5
fbd1cf8225aa76602568c81492d99344fcbb5d50b42e0ab7bd4858ffe8d430e5
83175e8e398ce777ec387a2a571b72302b8fbf90ba49def4f87cedffe3827b5f
c8e39f056c896af2ac5a0e6fc1f6195f8210d95887c02fb7bea1b28c8f62f513
f912b37de9ac0f052d4e05ac54df2d3d30e69a54c102e3d0d2aa3e38ce920204
9c9292f96d934a397d7f680004f01ca0792837061e5b143b64f9172107d5dd15
d0d847040f6346dccc128eca7353389d2147524b2ca4f976057d6d2800e5f7cc
1e04e348b5e71f8b7a82157e0322ce5ef2c58473fe3aea62c08fae70f86daaab
747f057ae274e57b2560d824c295f9aa496abe7a04e72a769a7e4f8221d6fffc
724eb477f9056bae333df6fe57847781337bcba6604f97bfd9e0ab1965967df3
ca58c8e06b0d0764d745cd5323c7c2c42b04499a53fe7565601f2e2befe837c0
306d84f51482ff2dfa88392f802921d0982829fab0a75c6d743e29b8adab96dd
49a76ae61fa5f359e952546b416eeb471553ce31a259f140854a1f240c2f42c4
7f13d6a4313dffc7b29836a3cea1ba4a4bebe593016412f83edd09646566a137
538444ef8804ae074955ac6b5692165967398ee0b216e340ec4f38154a07e0cf
b891b15eb7a06b64b73b96a3dc511d72d0c9c4059cf0060e97bf802a4c7b2787
8c28093347e4872c6cb73ff2021d8049612b97f604fd6f03b8f53945fc847368
a9c552e7e195ee79a03e3c30846f148275436d81ccc08d42812ca5946a90f923
0919cf1d88ec72cd215f29beccf7c33822316c94a81de33c9d97f9b55378a66e
10871f2769c6dc673ffaaaa40763f22369396b98c453eb418ce0dc248f484565
cb62ba3e8479ac4c17c9a0fe5ff7f9418bd1b9231be9606e15acfd3458f4b216
fb8c25f7e2f74f77a9b86cc8cf866991537083cc8a986a9047547ed01078b12f
ea77fd99a0619f2e2ae094c9661eeb709ace0457831087a3572a6bdfe162a2c0
1cb7d60e96a10b812ed4ed52c8159cc8543940dad0e8894d9116caf1975fbae2
b7a141fff985d949aeac3ba551531d246fd5f22b7556b9dc2e23d87a9ad5a862
e0e91634fa6cfbb2c86e5bff033f16956e242e8df8b9834dc0032759a65eda35
a7cc7361ad57aa555c93b55f57770912461c4fb165ca4b267f0f62b6b3e8ec25
6a2485d804f1e984293ffa340f924efaf66b9de6f9ea2b1ed0b0b4197ded43fc
f04d2052d833f0df7dc0f07aa677a58222a273c5ccc6d1bd8e96494155b7e2fc
b3339a5e8e1ad7b601b0cd15cd6806f07dc2838ef6d7770d4383cf3e4a28d897
b28077d2570be25f344c9c230d6d3c62b9d9c5ee8cd22dcbde41418d36822fe8
fe8afc2b31568d0abb61835b54898ad345b9bf1c503100f1593e33f8ef111d28
74f423e2acfe298c96bb6a7a24ff71d5ae553a03dcfd679d2031ace0460d8f16
accbda7676337813f020e4768df7c74d7a863dbf1e433d6f79e79737f2b4331f
6f8032be17e859a96ae0b5a321a4d1c56e265ce5a42d3bbe7c64e17fb7b29696
c273c84581f2cb44ebd59b706c374312a9c8099676349cdef6f8c1a6febb7ac4
d5f2c49dcf080e3bd643cfc023d59b76abb137d85086b2eef4aaa96fdab1f14b
dc94e6624f7852b6096cd86138f4fe3c25b8090d7cbdf10019ab7cf59678f586
77b39a3d3ead81f75f4595d7bb0eafdfbde751620d2822da85fb9253688cc22e
94857c99f13ee4ce868d514c756d2da7de604a03b2fd0073927f0001cbc4053b
b39cb076fdaffff12aaed6d718ae7fc15c0a572cc19052ee68a5635a9e70dff5
c1e0acd1c0ace7b437817c35e309961ea981c9b242c05410b001ef8b881a9901
ab9aa8c3e885b5669cb6119e5ea7d3805550b99008bc97716c3d62aeac499f18
87173a5860c984b83816b723f64ba9303e0af527b7742362df42bd8ddfbffc22
12aaf51bb68f03b7966cdf878a811b6f600a663d970330394a9d757dbf05a48b
da87b94ccbb97b67daf943f3203a9578ef17e492b43e702b05c1656272f6e5d8
c1bf7f8aa36df769dc701140b6a71d02dbfc15d90aebd44a938b53ca3c0ebff3
8abc877986d14d514d6674939fe3013e7e25371ddb4aaaae47cc931f744d9304
4b8f868e65e43b087f05537645d1d6b8bf146b190ba7736419c14ab68f7ae34c
fda05d412f3a582897b06ba8593101a925686ad6a77de11a8dea3aec20118027
2fc25943b20c10291f621bca2fb6d216c3ceb2db99ff9f3be7decd6f7603ebd1
c63d1dc767c2ed26e341e052abe4791a555ed017a98db1fe9fb7abc099808560
7c43a76a7cbb1461f0dbb95d7cdedaf8e0cab9ca4a819f693d1e7c2a9a9362b8
7976efe137919fb4bd1b543ba233773591afd176a4ba56d7def348c6f3049551
5d34d45aa70e8e7a9c29fa03a8a7a156a3c2372c75ed005d45492a3f5954a3fe
bab119a261946f95c056a3290b4e4f950e580a781d488796992dc26831e2d67f
724f956d34ad6f54900674e666b4fd4d53ab54f194de2b619ade0360f845dba0
bb48b74ffb9356b2c4758c9bcba1fc1005c72ae4a2fdfd31a451db011cce4097
3d8b2328a846600c6a95cea51c59992ce54c8890f5519c87633183fe4b21e719"