void-packages/srcpkgs/firefox-i18n/template

235 lines
8.9 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=59.0.1
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="
ecd1ba29435dd19943d2bdd38af4d65de1499e2a237e6d3a79288b9d141bb56a
917d879386cf361976fc0ee7bd1c0e0595066b4d4ce69aeb5f22f4ab3ababf6d
7b0201eb9da4606f27381d684a15b5684a2db3251e7e97c27e3bc1ee2f109fbe
0674aa88c32b67c70d089bcf2798f9b5e407cb660da2cd3ddd8809da25be1692
d413a03fb978ee2eabaf120522fd673d1ce428b8ee6cfc0fc07a31bef26609f5
956449e1fded28144ab8e318bc1a5f3567cef659d02a7a962cf61aa0b64d54a0
257266c1a8a8498722eacb20dc37ccdea9da50a3069762f756f0539c235e6a1d
a83112c8d36c659ef733a47fc40e64d9015ed70e213814954d5761633c2cf30b
303749c1af03c5eb5304135849513f066d4ed2b276667edafe63405a85fa4a84
13cc00f1bcb4feb573f2d2e68e556af4e01e3240c038b2e3b4b03ee6befc8f85
9075e2b278805451b4b52456ee954cea22740ceb63b82304b22cefd0b82b6848
74a20a0dbff85f72af70fa988990c7deadf38ba034c0706500538debf3545e84
28f0a46f87dfebda97dafdc299164d6b24379019a82c458e68dfa3e8363faf03
97953e7ef3bdbadb386ef306d8be8f5ec28f9c012e48f9875855c25c044dc270
fc12b006bf3f2f4d476c89f227b03ff59b51c81e4c3c0726e3cdb3016d0997bd
63e37c027b27207ea3d3651d7b712ba4e2d661d4e5286e1a6ec8bb4469c3c30b
357962244e13fea93e88bf486099b5c4cc117bf324ba8933d11a4f5fff61f852
a15f383e39f4b11e0fe014063224145f45429ae8b51d731db872e1b52b4ad749
aa1d03f9aada0f5d575a021ea0944fce026a34a8ecf03a5b18077e2dcd7797a1
572b856c971bf7d99867fb462039f698dc5f068a49f3b564d7dd732d6b1d758d
7378eed475cccfe541c65f8634ff24e8dc3bc62553b396e9f68da5821b417bed
92d00ee7eed2c099d3588227ba1ca172371f07b388fc866d20e4a3c22e7d3cc2
6b78a5ba462f877fe1d64c9bf2e8db3e4426e66aaa5ad3151f8a429d46e988e0
d084a136f8358f2c0709b983ceebded40cedb2249ef438a8ec1e1fb5e358e7ff
7bee8c904213fbfc33b2a8ddcace8d63b85fee996b753a49d7d77cc85152086a
1835efdc6145a47e0d4fe94bcd5eb5904c0435d2d09c8673eaa981521a529ce6
e8a31cb6715335f811565ba00dff5580e04139981344fd3ec91f92c028cdafa4
bfb6038c30d18faa11490750ae19ecccbf61dfd25f8172792e99321e619230ad
f92ea0e49ed3e052228a84685cde361f7ddb222bca6c7d50ecbee013994df910
0abf3c5686c301775ad9ffa6411c219d2d4d620589ff930ec1714123f48f6881
1df512fac2219dd3decd48ea5aa7c5af6ba1eb65348d122020afaf237a04b238
83cf18e8fc6599b0f4fd3a4991ab01b99da4ecb65708c92848749cf2a7ef0867
1f90aa31ca2b9b93fe80a25a03d5a304c30cdcba9c77cf10bd1a4eff43bd0a91
af9fb470144b4d524d27f683116bf40388b37e8a88266a53fc17d22978f88dd1
0df0b098a41723f4e950dc0e88d041ee89efdc984cb317c250f63cf0bb9d12a7
dbe46d9218b4b2ad83e678d2ab70422e779bde1b6254b10006d621a59a5af30b
7efe47e0b58eb6acab98a7846a8100ead9e12666524cc90c63dc2a87ab1dd34c
e72f3c50f114e2a697baafbf427e2a0372d74e73186925051f9a2a3647e80c91
d6f18916ce2ac2cc9f15c9a05fc0f83bbbe2d092fbd06d1b46b7101cf0aae03b
861f7023de8630e2d0daf69b333cf212d84c3389044eea500655729197a5457b
fbbf3b4eb0527a01e6182128e1153d9ecafda1ecf0b6c48456c087a532281127
ab2d7b59c2a6d09438efa7f712dc1a636e15f3e6da52fc00e9de3ce4fb2baa28
b3fb9886a427a4b1849326ed94528bb157489fa778cb82eae724e7d91df59732
3ad1dc76bc9afcc5ad7cf4e2f53c005d4861b79d00fb080c6487585e72a5380f
9cded87c1ee19a762f545efee71894db30ca66c35cacf8fc5cbe38207700be90
072c5d90e274deb3d0398445561b78bbf4dee1ee03f0c0ecbdeaf4e2968727dd
aa34c99ecc61ed34ff627d3fe77c4f1b8b0ff7eebf0cdec0d0ae28960547379e
c74e45cabffb0bce1e2c0b4a79d552f4b74d5307a1fb40e62ae9e213b1bbde1e
305edff9a994bf7bc3be53223db00e5a893caeb8d9e9175eea60c5bd41a923ab
e282a584bc092d31839c277a471858715b616288c28255420bf41663af806dac
a69ec46ff61841ef415e252be752ca9ec343d1cf30a73ac9c0e63598bf1d8fe7
c06ba278e86d214a55cc582da20c2f277986d4e52e99fedee5cd19f4a7f5b3f1
5bba366b527907301a54817fd3c95d4d6617c9169cf20cf94b5292825dd8ca23
06c927cb3919d60bcb595b8e7690148613215ab92eb345a3775b856e5590b2cf
10a185cf715bccb9cf2c00a15384e6feb7df2adfadcf144751bee4d03496c9c5
36a5d63ccbce763756d1aa145339794315e9ddd653420fe2fb1256b017da7b98
f3b83409bd4d742ef6c6c5cfd0d8d463bf1cdd21608f8439f2f86901e95b5b4d
62f4d6631b60b420954f1a7c42b5cc383801548c5780bf7badb67f1f0b4c7fb2
3c28029fb78c90726cf6dca3a22f80e45d855ad16aee431c008e0bf08fb77ce4
b618edf282a60d6a64dac68f796d45cd8fe79dc497176b5c821907eb50720e47
b622a93edf7341d11a23df83d155b86f45a4af769f2ff45996701431c36707e2
996df991c2945d7591c9b90633e83eef72be4533ab55e3ba48745232b0e83430
fe75a2f4885b7c4538a7447a650de9f338169549e5451d1e5fe2a70d6c26cfa1
9f9a053dda0e1a7f15dd2bb5564582d6c10f465b20d9165210c487f1816e52a8
1a40eb19a6f607434d5180474925ab903bd0d8e12c5861713b3de574fda2673d
7b0a1e894808bb4f17d6012ba978b180dd0f4825733e357d63708f2298fdb278
390904624102a0c5c1be82712954a57ee628a170361a57fda0e5e6dd5e4b9f56
938f70cd0452f87ca4da3f1ed17802aad48e581b8fe7cb214f9c579bb647b795
eeeea6999c44df8e6657e65e07c96f741bef6530b8198f79547c36867ad3e694
de8adc3a0a20bc650739a1a39c55140c0b5f5f5a078a6a2414a7602561bfd798
682e548375a925583d723ffb9889a5ffbaa049ed2d2fe33cbb17dbd50ad263f4
694b181873f7667a6720e3f6023bae756e8a0ed55fb4fd395b5be80db786f6b4
1f1177c60948d15d7d86a374dbfb44bfdce462dbb5496bcd01499cf8b17f9130
f85995c2b7f847dd9cd6325daf7436882e659a4e984b342e081058517f388908
e0a9c8c617d804eab0bc8530f15d1d8ae5e47147a23cb010a9c1f5eb5cd8d892
479b2ebbda57bafda0a34f29cc3e65a9a73db76967579d59c228bb03f0aca4f6
1be7524ab110feaa15dcbcc4ecdcf3399604b2fe79f41c82b1a68bea9e7b77bb
2d32228ebf6a6b79a20a18eed4091d8131b923fd127eeae01f677c157766840b
0b99e28c1b337008ac3d4a3c7b629cf71aaaad9c3f30e48f50603becb3064a06
18aa40a2cf30fe967c034ee2e084be6309ad848379c8eceb137381b308d6e297
8162c10692ed8723f2c47ba322770335ec821550ec3031ea4b67b99b560466e7
5882a6234a746ef9bb23b405ec15d8e74083598924eabeba3f18a6bc681cdce4
2ec1aa0c85ebd456a560f1e34a65183eef4f7d3105c69c779e83c9ca91e0a442
0913865b4c5edd6cb0006b1c2149463b6a0ff22870cf6c1c2b6cf55f7b7f76d4
92300249eac9468ab15a5a81a2bb5ca7b96ed4d0ede1aa52659ceb50bfcb041b
a3d972a645fefa7e1860f043a85c5c5e00e9b6c46712cd3f98b7db006d98258e
8e0f5c8eeb12f185aaeddf244363034fe0b8e14f875be5892b68f0fd6530d135
3cbb4cdea0c2001f94cff5078e730e02ce03370eaef1645be60c892ba284be5f
d7c86d1f09df639dfc2f3c487cb9d8eabca02efa848371a5e1e7ca1406561de3
d1b3e43d2850f9da05d92e1f3b933c54e716db163d462c62adac4395e78c6c7b
bfa5f3a23b29349cee54a85538c0eadb7f838cb50788c1927b7aa5d39d061bc2
6d8bfed15e2b48a7969de06f43fac314e3d0af99c4d24b8b86eacd26a03b3fca
95d5129eb1211c25516a8ac3f3a5463ec087583c12acf6546aa2915bdf86b463
e95d71b32bb94f8c75a8ec9cd042b5a2f4ba61be4f31195aba8eccea0443d6ec
"