void-packages/srcpkgs/firefox-i18n/template

239 lines
9.3 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=112.0.2
revision=1
build_style=meta
short_desc="Firefox language packs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://www.mozilla.org/firefox/"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ach "Acholi"'
'af "Afrikaans"'
'an "Aragonese"'
'ar "Arabic"'
'ast "Asturian"'
'az "Azerbaijani"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn "Bengali"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'ca-valencia "Catalan (Valencian)"'
'cak "Kaqchikel"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-CA "English (Canada)"'
'en-GB "English (British)"'
'en-US "English (US)"'
'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"'
'ia "Interlingua"'
'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"'
'mk "Macedonian"'
'mr "Marathi"'
'ms "Malay"'
'my "Burmese"'
'nb-NO "Norwegian (Bokmål)"'
'ne-NP "Nepali"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'oc "Occitan"'
'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"'
'tl "Tagalog"'
'tr "Turkish"'
'trs "Triqui"'
'uk "Ukrainian"'
'ur "Urdu"'
'uz "Uzbek"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
# XXX: Remove makedeps later, just for build ordering on the build servers
makedepends="firefox"
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="2d6f6373580fae6c3fb0251ad49a2a25e437b38738c204a924304c00d6492202
452285fc2119b75d70a747f8aef7164451521cee609aa7b66e050430262f77e0
73e8754d4a37b6e7590308a864bd9bbcc7997a1718998970c43572717e8a414a
a8617342200a6d34fc8c053386e0714e6857a70865b6fd7f91b3a88a374c4aa4
db35f3eb861a0a37c131a1c877adb951ba838ce402d6d1250fd2970afd444ab2
5398c2eb8b0812d4f547514bdfe38502fe973a97d2762dad1fa61b24d79d6d32
b5871097e289f5be787fded5ea629570f0684b1efe32a1566e4a6693fb637553
5eb2dfe39f3e70ec7c01954aeb20f7b53198fc4eb3aebd7126b65ab2de21a746
220cbe986b7a3439ccde0c91cab0bc65825e67c3ce68ccd04b431269c7c52388
8303cd05a04e834a5631aa4a1a0051b3a11096d3807c52971e0add006a72e3c6
b4f91f49f7cde8ddff1f74cc36f9ad8b30926491a56a8de7940e02ec9bc675d5
39a5f4206ac60f7e6630e12876b2fa52434cfd4ab5d02b369cd70b00941f9e8f
8e837e4cb6267122e9355dfd8618b022d23ba7ad87b43464f5ddec46e9206fe0
8a0e992485cca6fc6be1603183ef1fccdb665eb969e237d3fc44a4237c83dbe2
fbb368d55c20718fb46e0e6deea6f864e94f193c38284a8be9021e337a2ca640
57626218bce0c5c9a276deb97a3584e0f52e900ee63437e000521b83b9866af3
ba46cafb74b2623fb94f2b00131f10ccefbdbaeea726e30401c5a376a5a39651
7607b1c01e5501a6dca85fdc8bd446f032061b3558e5c444cd4d7708747a144a
82f5ace59f6a6dd4be5a7ded32824570b370bfa1c49b33fcc3ddc6df6743010a
39144978bab8bed7b5864fb34d363199808bb89b1911c5cbcf138eda404c7963
9084b0e8304ce3a928d7cb7fc1b9f81a6c616897226c9fc59ecc960e492db138
f7a6908d9c6663cd2408e3aef10e56f17f67a42c27a0e6c6b958d0350518403e
a8e14cfb1df640ed8b208ef7d248f8c2176366482dae5101c824a55345868898
8846ba5a0830efe74dc12bc3bf3958bab5cf1d0251f9aba6ac8e724e01810117
535971f39916ed2af240b8da57eaadf5af46511126a587952037246fe805e993
41556a24e9e1194a5cf3582c3b974f69fbeb25a941ebc475e1f9fc51916c6bc8
7402abdb4b3c3f630a18e80b6efed8876db75e1e4331046cc4b1add22081d509
6f1967bd843ca570ebb1435d05d00513cd986ad04087a3dfd983092705288721
c413239b280a880b145c29c7814c50f639af03d4a11ab94cc25702343c51bd14
35bb77d45db0a02583ab11dfa74acfc789f16ed9dce7bec11bd828608208ed9f
b7c4a9b870a79a4a382c487fed97c661f9edc7e598f27df6c8809040b2b5abd1
70328aa8633d13a9aacf90cb2e17617e5d6b8ceba372713c504cd8261f44e7ab
be58bb5808e6386e8bf25f38dad14a51e1440a3bf1a89b38a85809cf9052c835
09a35199c0a8079bf24507b5b1a5c558e17c1eeff6c035d7636971482cc993d9
5816972cada943cddc914db7e832aabcd97fb6961880bca1e8d4871ac7f9f526
3982e8e2c224680f3ae95ecb8d5f7d957a37b9115a39bbbe97d454d26bdb2aa0
81d03d3ecad1c0005d3795ce6652d973533a2e56815c8d4593d649135aafd13d
f16305eeae711feb0c0d76836e9b28210b0597b932e0edab1319f42102b939b3
f717ec91dc95fb6e25f15acc93f4d124f9258886c8831ddfdb487d7fc52cb987
d9a32a3d6b9646186952462566e1368d04c49b871a890740857495a34a301197
262e7529383e810dcc4b49af1707897748ed24ba12d7689922e6ee66c44c8375
84ffd5b152770a1362e554ed575cd7f5391ef8a10b35af530058b4b6b46d7c22
92582a14515b769cf1b5ad8b807adab30c4b1348855e052f2a447d4fdafaa120
24e12ccf89acb20957b04e4a15fb2bd368c26ab5f3b478c8c88f1765cf1ec27f
5ec55d5981de909c8d9471a6a4f5340cb9787b01af9ed59c70b552af3c80eaf4
8c4b06a81f1246c7bb0f6331f05b9a37fe713bcfaa012501f505a5a743166a26
b72e8b8ac67f59b3a560413f5d6cef1e973e115678908886fb276208b661fe3a
5a5b58aa834c1dbabae3597299cf52365c2590f4cfc05b6abc1aa689531b88f1
9cf7dfa02ab39112c6a377e1d5b3156505c4cf90611cf30c1a8db2013d9defac
7bacc65735391279dbd7b7180d565290f2b3ecb7c3d9c7dbf38b32f3a0bd38ca
2c14b05b202a548004e062baf185fbae399867459a8063c7bd0397d1e0a6db89
0c31999d283421ca4cedcaebb26ba52ff44bc975fce46b75fce72b5b9c3754a8
85220a71f2e1b0395e77aa92e7cd148c5bf5226f6eff894cc82bff2520e58c9d
ae7e17818a9620745f0553ad1b789bd5c7f88b3d6b1e74a75d6c7b20ddf56f34
33054b2fa38145e74c2e76e25ac53747dec4e61186dbc7cd64786a3b501f6363
cd0284bb1ea4c43114a1cba19a1e619f7602e16e2df6d4549ec352d649f18023
2e86b7b68afbf7e03e6c07fd154ace1c72ba4a5927661a3bbc0e9494f3c89430
7dfeb205b5539272ce1354bd09dd65328c83542132713b032390b197dfe3017c
79299c4a8797e2469bcd0035f269c0c493b2bca83c5d5993abd1aa422c9a3933
1af806387b328b82ebc289c617b4f006802f56fa7bb6e25bbdd92ee2ea003f53
70a1bcdb1b69e465d38091f46f49d9143c2c1e39d8aead6896160eb3f7776b94
3a28b1b5a3f3d4ba7211611fb6bb894ba4dd25897553d13f105445817442690f
07016e174009a12f3002d4278675341a621f468075f433563d7afb9cdacee85b
57eadaaa2db01bde680081274922f1169c84d214bde2ad1aa242c7e617ff09dc
70f5c3d47eaf1e0d4c268ddbda3bd2cc79d97796f13d461f15f43615839c8bc8
b002b5227ff3406a7ee6a6caed4aa6b24d8c9ade5b22df73066c4ee4a6c7cf66
45ec20bdb561f2bf0c17c614a2aa9cff11c4f2157f36872142dcc79bf3291b18
58b96ce10f240c1d2f65fde6b2a8eb7e47c7295c9d454173e1a3b6c76b8248a1
dcabf1ced78f5b4d01c05e4867144501aad4900537b13db293f961c23a7ba2ba
3d85c89477997e6d401c7a76103caa99565996c7ba30d8939e765e730cf07cd8
f4009f44ee0e70b44356663ed5eb81ac6618a84e0f531f2d1f71b15e76addd2c
c7a49fa32d668532e5d7d3f5fca443efd934006f35d5f5d190705a2bb9dc304b
176ce996cf7f0f41fb363e7e4b62abbc768b2dd840c49d538cfc9fe258a2522f
5fc7161afdb024016e4ccb563be01bc232144ff1a4e8e7c81209b8bd5478cd70
da9d9a5f96d7de9a427bee236f9ef169adb796eecd8fbf028e33f53c4606b2d8
85cac5e292d399e89994bca8b51ef1771fc30cefeaf88791326d83ec2049dfe9
4667328927408331843e26358581c04f899895a996bd7047c844f5d10bb0c299
da130582dc360c730725dba402cbc18419387216f005d6ae72a879d713217761
ba0b6334da455e61986cabf7abf7a5fdc26483a9b1e34a5c5c138230ded8e50f
df8e3838cb39673b96183f71c1b0cd777ba82a97e543e81d9d7ad09c9e7abfb8
b38c9a5cc7535ba3a4975f4c30a4c85eb763ee2df6eaf5f416554fd609eada60
c98bafa73207b0f18168ac5fab3fda51c56a7f163388fd332797a2ff7e7ff6fe
952c56e2f99a4342b418fdec8034a814e60f215f5939813526bde8bfab39604c
2c331935e10df11a8f1af3ababaa0921bfe235ad8305ccb7c7d4ff4d531420f1
f26690f2e82a73a9eba42aa346f996ffc6f0b873dcdba3f3a0b641e0654013e9
40ff7dfa852a7d36ae6dfe6897549c780755e1a465a1c29089b36051e0c11adb
99c4516b5b9b20b42f1f3d9bc1790d19ac7b145a5690bc7d10f8d4ea93b43318
81a8db799f83ce86ed905cdfc79a39528cdfb0cd3a20527e9e36a99d840e8335
631fb77e08e20fce384301b0c346352f647f41a53dda07cd7b3743afb6e36e43
27f614b359eb8102336a33760dd3c6797ef305c9ef10791b95e4e47c90f10d2d
e6604a15ecdaead766fd02bd274c61a615fe9c286ab7bba160c8d0b135abf6c2
4ee571a1ddf9caad87d70833e3e43d2f1a3f3e69f9c261c5ee39414abc357e9f
9ddb12ffd6f825d51564444bb576967bf2008730e24cf2288ecfab7c18e7f895
01aeacb6afe389a48bd399d572761672460f4a4d1ebd5bd6c9e44d3d7504fb0f
617c5d38481eaa8c1d9fcb1cb0372be0f493f79bcb265707dc57f10f9dc01a13
4f57834e3647863516a517f35d825b9778bbc072e47a91aebb10a5d94701427b"