void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=78.12.0
revision=1
build_style=meta
short_desc="Thunderbird language packs"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MPL-2.0"
homepage="https://www.thunderbird.net/"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ar "Arabic"'
'ast "Asturian"'
'be "Belarusian"'
'bg "Bulgarian"'
'br "Breton"'
'ca "Catalan"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-GB "English (British)"'
'en-US "English (US)"'
'es-AR "Spanish (Argentina)"'
'es-ES "Spanish (Spain)"'
'et "Estonian"'
'eu "Basque"'
'fi "Finnish"'
'fr "French"'
'fy-NL "Frisian"'
'ga-IE "Irish"'
'gd "Gaelic (Scotland)"'
'gl "Galician"'
'he "Hebrew"'
'hr "Croatian"'
'hsb "Upper Sorbian"'
'hu "Hungarian"'
'hy-AM "Armenian"'
'id "Indonesian"'
'is "Icelandic"'
'it "Italian"'
'ja "Japanese"'
'ko "Korean"'
'lt "Lithuanian"'
'nb-NO "Norwegian (Bokmål)"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'pl "Polish"'
'pt-BR "Portuguese (Brazilian)"'
'pt-PT "Portuguese (Portugal)"'
'rm "Romansh"'
'ro "Romanian"'
'ru "Russian"'
'si "Sinhala"'
'sk "Slovak"'
'sl "Slovenian"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'tr "Turkish"'
'uk "Ukrainian"'
'vi "Vietnamese"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
depends="thunderbird>=${version}"
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=thunderbird-i18n-${_locale}
depends+=" ${_pkgname}>=${version}"
distfiles+=" ${MOZILLA_SITE}/thunderbird/releases/${version}/linux-x86_64/xpi/${_locale}.xpi>${_locale}-${version}.xpi"
eval "${_pkgname}_package() {
_pkgtmpl $_lang
}"
done
_pkgtmpl() {
_lang="$1"
depends="thunderbird>=${version}"
short_desc="Thunderbird $2 language pack"
pkg_install() {
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/${_lang}-${version}.xpi 644 \
usr/lib/thunderbird/extensions langpack-${_lang}@thunderbird.mozilla.org.xpi
}
}
checksum="cafdbb0968a3b466a978fcb2faa9c6a764c8677c7e241d951797c74bd9928188
ad0d1c7cf54cc06d993c4fdacc1f8f3a47311c8fa2e8e4097189b1164aeaad17
3a4abf71c7f4a27418dc1e1529300543a7638d651b12b27333e2b18cb02ac5f3
873a08a0b69d048f139fff475f10349829898f780a0279a0181649a84d1fdc1f
8614d95569ffb47fc92a361afd1ff85863dac10efa97c26edaf68a975186e280
70ca45436d2a8085dddb66da51e729607a3c0934b95c6a47b2e7822038b9f65a
cd2f110bb4463b2a367aa8ac84624ee24b0bff9462179f02746aa5bc5e4101c1
3f27e19bc6f2556951c77123d84b9a6b97959d3b21d88c7b6a1516deb12a02bc
e5237d6c497d47c6aced6beecd128ba37d365642006b1455d29c5d83148b6da1
a5a1614a20956f5e867d9540818e112bfec9ea9878c6a4e42c09e550baf72858
233ed191ed22eea291b7b43be80e3f208ae7d5c9b3b9807bae580516d4a700b5
b5dfe4797783edda6393765d1dd56e4e1364f0e235e649a285202fc801516819
7b08a16e2d8d60cd74528b2f6d1d4f3de720e1aedae03723feb9287b9e27f067
242b0d20e9c35c44925169a71e46fe10a7975640223c693d6570c03a6c202fe3
2dc6f17debc5d33f24fbabfbe004b6a94fee9bb91825c2c2b227ad71016f5991
6a2e684e8556233e66ba6c7676c5973bf5092a8cdaabcd6c70c64505e26a91e3
a4789a21ce6cfbe470d828cfcfed94202ddab5a7d14f1c99432c535b11a975bf
591c5d52655ad99aa989610c88ed6b2ecdfa65db71935b32f9113f58b53be227
3c7ee73bd972fe36c077d806f136a92ae25ac88f99bcd5c9340a487b058d1cee
6474c7bfe01f2bc873934f248b5b54934446d55cbbe454fd6036c76bbfba2a3b
94635d3fa1e732317cc67973dcda0e3256172a1f1d167ad32df07a0f38d9dc3e
fc66e844883308e2a7649e1d1af9e7feaeab03d748cd12397fe8e424c8b9c1d3
14f9935e87348519d74ff4dba9162162718374c6ae8e9efc415735b732025c88
11e95579b67893c411b8dd167624df97968cc02c7d5d9343a89c348e7d191a73
a4d42770bf49890600f4311f47f08fb2f3f6808cf471af3c97498665591357ce
ee906a3b103b153a7a059d788e79a9f2f271958ba1a7ec887c7163f46ab7d5e0
0cacd4402e8e45940d790acefb7ad75e57934eeb3317bd59429f0a80d3bd5724
a3c3b78cc9683f08ed7b05556da692b059f905a1c0e8461abec154a0b8bae43d
ec802e03918d49bf00a2e143f3cb58e717e31628a0efcd9d3a33d82694358e71
8808342e19c7a6486d48cd777a77f95aec71357597f1743ee24bb3ea22234ec2
be6a4fdb3213bc2ef808b7cb15ad6ddb5861e7c0af0921f0e455e5558f036873
b0516415fc988199da774866c37fece1251be29eaf62375bf977ac91573ba354
c5691185768f84bb6bcbca3c772bb5fda8bebb02feb9c58e185652d52ed1e1b0
8102e345825e8faa322e0883f2fcc765f9009c95ee7f82175c30ffa818a1e7ac
a82abf59f6b80ed7c38aefd094fd667017e3c5bfe2759005206dcfbda79fed5e
a156d2bb902771a852ec5258d547d7306026afa9318cb9e2686bf944b1900eb4
8a6efc95689723aa8e3df6be4a49f8ac38a842567520e33a05a0cdca5996ee53
4215b691b46f9af0b35255309cb062ae960e1094663a27cb485c33a904f701d9
b8951f19f09a3f30d6f181f6ad564852fea959e9c856c9bb4c1cfafd7cf85cad
ef763c002d1f9642fb46e8f984c6ec2a438ede66f704567a4de668efa7e6a560
0b675f20a4aeeaebd60236de5ed9a0e0b93f6c91bb88d91e98c5a0533ca3adb6
8396cf7a6aeb14ef4a4a6e6d9880796deedcec69436eb53f1cf4bf5ecee36d2f
29b88e144cb1643d83ae3d81822c58633e127c283ba66a5a8eed5f8e6b2949fb
d96456875a81f7e13a27876aa5fc1460fd4356a3914a16b956a0c8cf4ccd7e65
93e01c5a2c42fa88e4c6a348578d26e49b0e31c95d08187007957f13eb0a081a
96b7e63036c9596b12f4ebb7d18fa867757278e391f0f3b495dff8c32e272670
cb9088735f3954cd68cf5041435a8e34b53fd1e8483837e802ac43afae8b5321
30dbd9527e2fbc9d01420a364d10fbb49bf5ca3f39f31190e64e7ffffc073802
1a772c4ec44bdaa668bb573c3733df878a5c3e7cdf857da4fc3ef06b0f94b189
1fa8ddbbfc81122d450c99fda5502ba6166a8d7a91f3d0df3e6e280ae9fa0587
55f540ef5d32129a12f08f105d2e8932db9e6a04351b524e3dff51e6859e6e5b
3da17cc2da5919debf5eeec80e3cd7dd9f94317fb7e5ae242deed2c7e620f0e7
981e542dc8e0781f6642eb67b534dcefc50b0683245e777da2c90209ac5bceba
17f1b6ee14011ee84a7b3e3389e78a1b8835193da5228e25e0f5109284f8f074
62309bf09f3a5a655c5dca236d5694157a28399733968afd608c4cafff4ba022"