void-packages/srcpkgs/thunderbird-i18n/template
2022-04-19 19:05:34 +02:00

151 lines
5.6 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=91.8.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"'
'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="e338b3f00ce13b8b98213d9fb53dbdeaef8082517a2cda06a62c59d8f4021e1e
0c6339b23d2de88b0cea5473289c05820d44fd89999037285ed19b6394e5d221
4f8254201247e6d8e01924715d101e4bce8f53d3799f129a0003b528cd994839
f7c99eb62ab9ade49d2022edca802b4ebbdf53a753c378315cccf9bf2126bff3
13191acb9cec0bdd45527e09e1f28205fad9e4b67682018f9f0aa6d096b40a7d
08e7f631467b5b1aca8d35c38936c854c3b8bbba975d1b30b5d43637e1b1cc3d
8b40a658dd14af8b268bef3ae656524165c9e432f2df882c21a083b477379a76
68247d9f9e33f803446ba4c114d5db8173dc46aa93bf06c828a2d154c69e4ce6
da155c974f591a6f7b29f42ddb82ed94fee8db34b0b7c67a18d747c38138fb7b
3cf905249aeb0676d8a6206746c1d0ee03fba579bd39d9ec8e9cdc8a23ba6232
2afa46cf5301607dc1b18933bd3877842ffcb86563bb8ddf859114aa74bacf1c
d437fd884c900cdce7c22bfdf445819ebe8f27d6d2b32392e6ab4291188403b5
458ff1cd1a3a3357d6592f04fadc5bb6c06a1a8ae4e095de599c0a4b4f3f4c39
5a3cc430c53f3a2e7258be9c4dc90002e74b1df4fedd57d748034facdf09462f
aa41718568841dd4b2487023d7c68b88a7d4cce6634c2c8b2af5a5024e910491
8e08fca9f5b4284cd78cd80f54f2005cfaa9db9b2df596aabff3cf85fed3b032
00647c73c5d834c2daa7b1c04c152ba70e530f8917a88b48b876634e6735a08d
3b367c2aeb5c0b7e7158570cba56473f36f0e4e2105528f6cff6424a8bb1b188
602f80592d721c0d1157845c9cf83547b4497842cfd37ae5466190d5f89fc2ca
310a50fbd029f0bbb5d7b3b80b9f0882ddf03667caa2c93a1f2c878c32bd1404
cf75c1a2992d11b2ea5f4160d34f793fd00d7eae2c3604fe35a96303bdd5b6d0
39255ccf6c1661287fab017e95a3c1eb74619d408bdce09dd359fd58f2303ca4
41e9b2df204081b13ff2adb391f0414b2b0ba4bf83bf2118a30c21265b19983e
f6be5a2cf4006b31459a887e14f69e61505e3577ece674e81356ae53b025b4ab
22575da8459ceb57e1dd3e02c9a5e7219b894767438d810b94dfd6c4e97bb3ae
27487ba8f1115f1aff0245629fdc1b785391d5af98521e58937677f173eb0f45
666bd43ccbdb37f097477273aa8ca11b9716c024f8c162bb81a1b07006044bc0
1907c178beac70dafdab55acbc87e56a9913142ffaa85be6cbe541361d53d24c
20e7464b43f12dcdcb3892a6e9c7d7c46a2385a82953c388599cbeeabc362786
6a7e2ee51d92aa5db52816de0dbf103ce2abf40a34411498fb7b2380dc87101d
2d2be878ba6d5afcb6823f58a6939ebe895290a925b13234ed2c63d013ad5165
d329c730c338b7d9e4a3fc07fae4537dd0be0b86317db42b1270daaeb7025f98
51ead8dd506cc5aaf4dfb58be942b3061869c9c26bfec9b29930d0a627c32aa9
ba4191dca0ec8a9eb70cc3d9d0a20d50fa87a5c0be3190db0ef5867532ef8318
4e849ddec5f68004315b93dc8e382774101a815e9bf476f10c8e804a9657aa2e
04b06a1a5842962116ef0eae6dfa263197e04b5a560ce7386f786322b5199364
8f81e86174d6126e0e0551b1431713f09ca66e3dc546cd5a7838d17c2cddf52e
1ca4983cf2de4a0ac8debdfba0c0e3844cd5020199f4ab054864dda7ae2170da
f625cda77e82c13e358d33df96d613ea8145a170b54ce399bfe960e0b88ef146
93b79805973de19cd0beaea81add9a0f40e3746b88648c6c7e90a0fbba857777
368b268f6b08b5e1d0f1ffeeb662ab4460bc3b60d6c3ced54a6efff44e6bec2e
8de648e97c00fc1988ae5788944c3821304c49f49a669797e3bdc4c3637ff336
1489f343e79064d24549556f7d7164ea0e9e0e65256290f8287a00fdd256bd04
0f004c54f4fce861b709d6f0d394c6ebb01a16aedc29e6599f56c7d043e18936
8f7a814d8a47efa9fe1509b0ea450697e2e6007beb5b78e2937b3f2b133402b3
7db9b294668932d2e59309c452ab74d0d737eb6c8220f6fa5aafd7be66ea42dd
b9c81d14520928957f95e40faa80a8ed63e76758652fb3a73458a848d9703ac7
1129915d753dc68c4d4e23e6d4dea5de7c911f7d3204448b231f8755d7447c70
76badde28f93f4d8e05c163a357223bf1a85e9301cf6221b222553f637e33532
c50d5aa28e33dee903a31b1ea73c01575d7d784cc86dfec0f853dc51e31bef40
6b897ca847c9d497895d2dc2164582836407902c2784219617ce14b80b140739
4cd25edb40fd1309d1121cb582001d580605eb12ec414fe4125d580b809927c9
2b822f814877d3b20ced442e466ff78cc0e2effa971b5e7b16ddd6bb9500c7c3
b2962ead550ab841c4981a70a0f80f1baeb2d10165dc7536d069598643f3d4d5"