void-packages/srcpkgs/thunderbird-i18n/template

160 lines
5.9 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=52.1.0
revision=1
build_style=meta
homepage="https://www.mozilla.org/thunderbird/"
short_desc="Thunderbird language packs"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MPL-2.0"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ar "Arabic"'
'ast "Asturian"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'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)"'
'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"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'ta-LK "Tamil (Sri Lanka)"'
'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-i686/xpi/${_locale}.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}.xpi 644 \
usr/lib/thunderbird/extensions langpack-${_lang}@thunderbird.mozilla.org.xpi
}
}
checksum="cd1d424120449b922d970b3fee89d753ae231354e4181a4d4700dc807504f6d1
d920be2b1070c04a806745a91e15ab1139d5d2e97480755dd62642bc15222c40
9da12e3f1b9bccddddb673c7e8b613badecd2e71b28aaaccf16ea6ec4a64e095
151a7deaddafcdfd704abf7f933daafcc1f1465624b01a856f7c0ff02e3b8701
f281a18cbd823db0331e351f02543249b90d414f9146579b52d45f2826463403
b31c85a62f99cc6f8e043f52b16f977124f3ba89a0539b064b0b751910496689
5bb06005edc6dc5cad1836abf4bf2a79a71912a841ea5dcede9ee04c50410e3f
41d2fcc1cc5aed3f6036f6337bf93aaa9b37a32e99bd9145f4921a6a927b451b
28321a38846a06bed47996fe5f68c5579baa6c8804138866c307df0d26147fd5
ee813026f6312a6f11572422f0bdac9bb866eb820d8fef917bde943747df18c1
bfa9265887d64317841f85222638ec901cc95ec230670994f2231e65d4952836
e29a9433a9f7b9b8d17bc4be1f95ebfd2c4982fefc3ca90372ae2d627f20ad71
eedb7abd583f2a4b7a61f81ad79d5ff02159535faba07fc30088776e75837207
b916e3be5c5529e321a8defb0397dadc45116d9d06378e86d7007d7babe9fb45
803d67f5d6729116b2d1d3ad619c174c122cbe57a51d36f96390f2b563405fa8
1140407c98f609ddcfeef4ad9a3538e3c68da86b3fa8a138ab042453e737645b
1dad4a61a98a594304708eb8c3056463b07482210cf404a1cc5ab96736eb9c94
b54d1f3692b492ae7792ee42ba6c15e668e3ea76021496464feac0414bfcae52
552f2943a37ec9a3f997d904bd5b852d7cdf9977f0b8fbb87b511662f944e986
aeb4bdb8cd8a5e1933b784e16ce121c6653b4aaa05c2c6f9b056309933521475
f41fde901cc9210967ec39e3d258ad568d889f07a1f2fb1e10747ef933631cf0
a7e856a42d8e021f1e1385857525e5ea751ff143ff725aa15eb6e1c6b78c76cd
78aa1c4f60ffc943b4541d8ebf08a9c804c7f8c0dad3264e6f09aacb1d5c9e74
d27cd41dd6595ee588e18ed10736d84b2587f192b84efcaa99a172c055513f11
8ea7ae7a48e45854e194ff300510a7f10fb064a68bf0c9fa5cc8c54bb860fa44
100b0da1c56554c496cf93f1489aff171a6794371e0f2336206f408dc5dbb862
5161640824d3cd84dafe08f7fef762dbe00c6ec0cc0ada9669c72e42869804e6
d32e7b469905e2831a311bf3b541330b530d57d7bc618d9e2f1e01d4fdf337e2
e8264f71facb7aa89aa73ba19253d7d37b247d01bc98399c1bfcb9749b9b8e57
3fcf04ae1c549aa2408b131389bbbf7d96b3f5ae80ee51fbabcaf57f9af73581
b258b88c3618cf03258e1f2a88b58ed8a9ac8d6f510cbedc65d30fd0d1833a5f
9a9ac947b7fa56ad90940214a383d1a2e284f1fae723683fdc03cc5cc044a7f9
81439f2a46fc2fcbaba27a790d13371bb29944dbce536adf3a4bc88c57c58708
c614414408bd3ef96c0acae40c01cef76af07457f73ba3388f96ed646d0e93fb
3f652698258901e7dfc05751b9c44e6c6cb303b9580b8393b85aa5ba532a5145
6800858ccd1722bb805a899af954a62cff97feb6645648ee75cfcb8948628cef
dc7703816f06360432c9f7d69eb4db6524db38605bb43dc33fa61be0582ada08
cc1bf83672eba56775988c6671ac0101330df302ff7d3b34e3f8d84a3486ee2a
557458360291cf1b69634329b58e9f8d59f0e235ea23fe04c83692784aa05956
a7fbb749c6222a020cc50ddd11428c16c3fc9b1349b757426b9d2e2204e2356d
0ecfed322da41c4e6b21a7fab03d61a2436f0f4e0898928f19eac28b52da8a05
d5b5bec393b299367610794958ac2d7bef54ad2cc9a29ca2559c8c230bf6564b
998587a0074de0b0a26206c7de2cb83ff5bebd194e7ce184783fcc2d58eefe97
33a1c4dc8cee63c7640f7b492c171015b391f88b2629660b83845726925d1604
f59e4ac38e6f60808bc7552da66a74a9b059f3e6fd8d1aef2999cac3b157de5a
d152fa89d2e6769b00ef8a7c04debc6da8e8a7013a5faf92038651a99172bec9
f4d0a47bef66689b53506078e961547c0100e7104a5960c9eec2341facad27d5
5d57f3e86f4e19daf5fa0fc5cb63aaff646d4cbd47a742c04ba77259c25dffb7
56dda066bd8e6367351d0790a2765a05813bf19b65aeab27cbdc133609a30b2c
8a2773b55f020278f658b7254dcedf0d17154b6f5d63400943cd15bf902c9019
09f3de38925c36734471ec2694094211236d1edae433280e7547ec57c8040826
5f3705d4270357b3e57fd26131155516fc51a47886a20ef143905e15334dd86a
bb585f6cc8166e5445e84220cd432a99489ea898e58edcd7a0b0f2134ba73acd
d95eeadbf12ae6e554a7f9a1453befc6dc3530b3e441491db4ed96aa7c355463
124146d36b56811e02c1f6a849611e4977a2189fd95b793b71347532caf76070
8e3c84b436a9d0465507bdf42dd42c9b26d23987fd7f7a46cad8dd9f6ad0afcc
e372440fcafc54328c5df328fc22642924eec67fd05e33f8ad5a15cfdbef878b
2ba552e364815ddebef45de1e7442add05bd81d34516a512b4f6f59b9c3cfdfa"