void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=78.10.2
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="3ed94d1468ba355458d61ed041be0d61840777726a40bb31d8207ef9eedf76f6
f0c37ef302cc411f7546432c7879265a61fc955617b872ff0bce05f8454fa25f
105cbccf372e664ce7903ca1020b8f9e35f357b6f3e259cdcfe820ad0a27b509
b3c8db73d3911cdb11f0c4610726a543137bb0bcc8f0e62de8573b403bcf37de
da380771bfb086c16332f7bd4930ce57d50cc889e5c4745c7f69857b05efb4b2
e76a63c092f306a616dfad7cbc9241d8376d17ba6b8102a47c87f4fdd0ad7e25
1ee7170b6effb444802da54fa2f7356939f77fbd02ae1067e3de00f7dde1f107
7bebe081bc55eebc96b23b585c6f23ddf0b585e7090a5a361cc221a45a224118
7ba2614262c788f5cdb1d54c13c3e4b147789d77ff48b0dbf2b3f65085c20fd1
e1d6d0450bd3bbb8c23871ea54c2e70a626c784f4032963990ab868af222a633
861ccd15782665be5c245eff798b042d0f80dad13843bf2ac7b33601a19e7a09
720942d756fe33e4a2919ef96e1e0f11c8866bd6cd65a614452cb8d72db8cacb
ec6c7a1d943c06e9f4348943b40f5e65519c9e8e1d16218aee648c87b62532a6
3f90f709b016aaa9c84f4ea670c9d64fccab9ae4d5ab28b7373dcb4169763b8e
2d06c3018b7a10d97acd34ec60791cbae0dcb247ecc4e11771bd4016aa0126b5
dd0cbe3aa6eaf11facf6451535a71d04444eb8634dd4650827979df8ae3d798c
cc4963f93423f7a710bcab2e72444e8c6056c3498ad1aba5580cba55c222cc17
f54d91503f71a25526e86e344bb6e87b8af0ddf8a85c30bee2835e6dc704d905
62c3818d8e75dcb2ead6f9d044169a570252b8994efb5e8e323cb160508d6d9e
8687754830b1390adee3ae8df8d962876f5d6b955d1c30cbbfc2ce1162e2a1b1
60509f642825fd54efb01621384bce6a49ee6f406c632ebb9020d9389a9d8a45
bb4697e4d280bef2bb360b390a635ed7aa1da404ecbeee2ee30416923c04f16e
d7d8297b5bd11fe821c04c1449465d6d51b840225ada250ea85517a1a88f41b1
491fdc8a750ef7c83fb5cd1323f760da551807643f80a9be211a4b097787b300
2ffe1db96712798d5f2b0a787e0ef28e34f5eb5faec4292c02f69d9634dc6481
434dbf7c552e5fd8a3a70202ed8c7efdd76e46ea6ee414eb4ef7c03ec5f470aa
d5cdad19b32df2259cad127ae2cfdf8bdc2ad1f53fc74663ad3f067e23e039b2
260819217b6e97bcb4996234f14dd43fad1bfe49e5b38795e590ebac406ccdb7
951050e057d74c4ef32086bebd8431e9cf7efe48d9862bbcf0eee9a78904f94d
8d58d83bab914bb3a3bf6472b60921c9950de0778b74a4476eb21ffb2585c9fe
3356ec50b10dc0703e2506cf524ca7ae3e5befcf473ed9fd3e7a0c496e69f0d4
93ef3f4f94fae102573bdcae8dee7e0d0add97f69ca949ee396a03d93c7d61e5
b681497829b2d0f09b0c918a26f81a28349015d58f8d011d1e67311bb827e7b1
48253f0bbd37a415fb710607815b9476218c9bd7e1755640341eb6313e3b0891
83f2103cfbde9e3f1ad548f56a958eb61dee7399df1c2900d6d21baef2be5303
7b394d30cf6ea6d41f8e11502e8f19d6bd72d2c26973e83554c98aa9733e40f2
a8b4c86c540a397d3263575047af138293cfbc739bd6751407a3c667fcb00be8
9acd4239e9253e4f639a715b0460452eb5bc54b0c92df0e4be96fe57138f7b4f
3f61c93ea05aa6b6c5fdc0007bb38e6f60b637860f2559c2a6455f4a09983d01
1d75ac73a2ed12c9335aeb852aae6f94fb3819cfd65857eabff7dd28185a1f06
44ef3b4867c54c2dadb79eb46e54f6ca74e4367f53cec3ab552fe513a67f4752
60f1c8fafcf8b6fced33c8c7ad87ad8ca3c313a00676a11aefc670795d132409
3fff1fa39e9dadd2fc5f0dacf256a8f990042045ea52a239164f275f4efc3065
ab10641d092c0062148a90b23d0c1f3e65f9ac1312f213a715dc9eea70a8539b
6dfe2df71fea1bc4d468c7033f834e3fd8cdf11729154e373cc1c0b23cf6ca49
ba750ae56741f2815aa530454f83103720d934727820486402a6b02ebeaa2161
14f94f90c777bbae6fe6050a4ccee771afdcd585e8a152e6a6a9e82d25ab5450
1b1f3a15e039d00b20fb4b91f32f7ef4c853b9e9090ce237c0c441e0be7c0939
eeabde55e9074a47b602fe1630b1d2a0bbf6b531c4729b573e1cdf1171e73939
d83e7876f43b41ed754aef886b3e366938b6b6fbbfde343381ffd7464798a3b4
db0c98e87f5677bcf215497377030664dfd013498b6bb297a8b3998fa356a1ec
b00b74d0b8c596f97a9a7fc63ab38fcc486149c60bd97529d52b634ed8513dff
12684906ac718d7b97689a5c808d686e7a711c2ab251e9060ac5e988f51a2b15
3fae2530910ce03f179bf24aafc7dc9958da34b37cd064b6c19a03cad754af5a
369cbb6ae46a3ec65b3013a2fef217fd219a1a21ada3ec457043c29be83a39f9"