void-packages/srcpkgs/thunderbird-i18n/template
2022-01-16 21:13:06 +01:00

151 lines
5.6 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=91.5.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="153b74896853e462e9ae9cf9098f0b6f34116559975861e6c9f04e8010c0842a
fd018fcbeceace184dc1f4b1e1623511eb0a8ecc1ae1b956ffa170842fefcc73
550f2310775beb5ce913b6bfa593fa04776c1927c87cf8079eaaf10f6d8b0537
99c61014976faafeb2e813ad74b1678e2128ddc0a76bfcbba7cf6c602c11a223
7aeb9c9c9aaaacb2a84a5491aff9588c8b426ea08e0a43d2c63c091b47cfc5d0
a30026739c7e130ad1d9196c19da72eea6c16c7571f6073aea4c0f80f10d8f3c
7941933c4c80d4f1109db2a3f584518c6995aa8746b0f4ab4a6f70706becb0de
1840fbf5e814853fdd976e20bb4a432c210321bdf8cdc5b5c26a593afea41d94
d04205f28a0ffed85aa1b11de42d46063db482392a71e0ad8f5074b142c6deb8
1dc362d91c8699a81ec4070af6422f97bd275ef01acda4dd41634c1af6415609
9207a8c1a98ca2fa51efb54f12a79d9cae0e03faf5941bfc6cd66b0f02bddd40
fac6239a5e043b75ff595fa670b23f0520e93bd3c8e4aabce0340db72dab1909
4642127f3e521d130d246acbe8df7f2f8b2b461cd357839773bc0f73b76ddf82
adce6a6c77997f9e9fe08a20012ce8ed88116963599c348763d36a0c196af1a1
6608e4c2bb3c396cb35794d5b90eec5c3403b319e3d220088331b7b3fb5f45e6
d6cbd9e7089f05928202cb95340d94322714036cdf2bd50777e09300d60b35e2
965b43d20a9abaabe8f7d07dd5bf2c522d73754e52dc9eb4e917568e14f03ef4
17a78d93de483a0097504683b29752449ea1cdd0578313428b39c9d6959b4fc2
75238449104d85368cfbefb2d06fe92113f4ba719fbfa1d4da5fe46a3be63d0f
f8765c44569a1eead7f96c30cae8e34557597c03ae0778859135e637370f6769
1675ad25f3d7372fe8e004f1a5df4eeb4d11042574d67546d99c696f76bb416b
17d1c9c752a31c0d123de4fa84b5c0a06bdadb7ecfb3fedab4cad22289ac2cba
eaeedd14c00ffb253b6d6ccf66f131940a44e190c77e232ded88a13b6b7e3b59
5ab29c16330c3951236839af54081d282cf0de17f18e1421b7e6d812cafefff4
d6a9ab1ca1a3f9613a00f1f6296568d3da6ce850a7e797ce377e9516c8b78837
38bba476644a2f0ccc636ac176e501b85f3ef8c912c7ff9b9cc4ebac74d83cdd
4338ff7ef6adfaf0308616128bf00d190372b8818d421527dc5742d8f3ed4918
38d88509c005ad62601a368a284b745570e33a9724da1a1ff41e6feaaa4273fc
031b23573ec355d23ebe18615a86216ab30a95e04525ace23f7f4d7ba8245c41
cc95bfa23f1468ca5a670dea7d67b579d18166332fc17942c4733ce249a882ce
b21a892bd65dbd12e6f047079bfa8e6175c58167e7c8defc3ee285eefd738d41
494796c4657fa6283400b9cd9ff54bed947068222f9e94d0131033d953d37176
44e135062450c53044b412447b6d0a722fc5a99658ed7ec3c741dbbe91ecd736
ea62afd388cc7c30c0a1a2e161e1154742e535b1177c718ca0620de7e296fe61
67d954bd71dc1a21d28bd410a0c633c4c3d93bcb53095d349c470a270c242d39
6a63ff0bbf96411935ba101baa7286315e70ccbc0bbc1e8f5ede822c901a23b2
18d6578ffebd4867b01918f7a154a317b054d5fd55418f61657cac05a995ee1a
22bdf3404e59627ab73ee64394efb0275741b7b9c1d31d134d5612242e1858e6
9eb94a5b380f084625e605f20a388a9b75455c07e49bc73ab4bc94e2d52baee8
60ed67eb52c673b168b42f385ac05e4f0cec906002f46dd0dabbf807777c3302
6711681f44fd41ee493c7ccd618d98ecce24354073d72ca59ca60df1a3b53f2b
f0fe96cec503d05033651489aa6251f8279fa0f0323818df9f17fce56cdeebb6
b012c406274bb8a4131546cf363d4828a7e55f1e6221559d5313137de886bf7f
bce8e92d31183afb48fba2b78339d9404cf87b67a9d2f13db09672fc8539dacf
6a3c56c782219a0f3951d90700f3c63cc69266f8d4546f19281194cc3101588b
a8bfaa012718716c45727f207fadfebdf1dc06a66628d284bc60d8d37087caa6
cfecad5b1cf8c233ad01af7489959d5d680028851fb676356ace00cb737b7eae
8a0aea8d91a3978378166219f5aaebe7aca91b199fcfe3227752ed3f443d3612
6ff82ddcf1974b8bc7a44789e1d4238e92a8d5cea2c14daf1a4f57f6ae98c983
9483d7dca9c450483c9be9c21ff77e191f62e41120fdc186fe766bfedec805af
14eccd3edf9c4be0ece562c4bda88bb0512d846c79e5480478569493268a6a6f
3be16dd793abe690471bdfc633c41bad85172603aeb78145ca5290332ece9ff6
f886871be3055d85d9bfdff63b5d24209af97a04d8504f5afb631ef0a1372088
abd7ff3fae4d2d3459bff96bdde26cc62f045edbaf9eba8b457ade3c17f7a57e"