void-packages/srcpkgs/thunderbird-i18n/template
2021-11-12 23:24:58 -03:00

151 lines
5.6 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=91.3.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="54aaacc9db66162d2ffea6c36642e92b545193c6a24e9ba6a13bbad0cfb692ef
042db64a29dbb9c0826f8b86df3389e3bc4ae98a64f4edf1ecada75c464457b5
5f8b86b763a3f3dfcfa0f3a803511f70d37a6ab9d028f4c636a21fcc2e8d97c1
908d3a1a108e67b0833c8f815aa4e5610908d8145a181e942b4ff43b7ad6575e
f3f7a7c364d63fe3f29f5c10b137865add53e65d6b34a391142a19bf1d138b39
a0020bddefb84bbe5a68a86bcb8852e30739d3e5670c8e3ac25e8fa166b8c689
6f8d12d2deba1df2ecf1ded751570a24a63c21f9393e5a59b7889696ab5d4d93
b7ebbb43d5721c6825b8859e7d8c7702bb06c3d4762c13d671143809b7ca8828
bbf25e35f372e420401d1ccbb51c038b307d2b0e8a23f788127c2aa2287315be
a66ca0af6e2ecac6032e4ccbdfcadd46aaec251805dda0567329df6674103e94
eda372a287843a450a3f40e1fc243b7f8662433b51185af63dcb0b666b08f370
330bdd81270688e3265ca489c32f2f3427b39f432ffef24fc680f68360731a86
75584278dd682485818f2f91f260754187f5c930da94b77032695077049c90af
9d403380614ce709deb3c613b7da06b02c00d3ce9aa0ed33a1468aac6d882040
dd09cc0927a29aca676b954a342ea2a11692d27b1d3cb11decfb581c0d99abd7
3a63e31ce53d0922b5caa0018f2cb91f75611488b5fab0d59918fc47319e314d
0b97007f0b8b16fbb19b43b1a0dd28fed53041c91324e6f68bca55b55bc941ee
30ca307bb447165710c8911539d89965875204abedbf57f8fbf77616bbba7379
d574c0a6439efac6e4cc462ef40fbddadf31f0cd735cdacb66899568275b0a1c
172f238430867aafc66863e6e229e5c2416993fe0bd97b6fc285a1498a66078a
fa514d1d0cde0af3c3137e690525397b324760cd5dd4e3919721376011bb904a
2148938002a1bb0e018dd0a5f4725a3f57ce5ebc9053d959c00c93766c58c6d4
fe3fb83cb738f6b7a3de033b6df5d6f5fdb87eb18370f36b5cb94c49894c2671
ca4ab1806947dca8aa67dc9780d8253117ae44764f4342eccb06d81b9624e58c
fb56fa4da47d487238227f38cff8ae80bde6ce205f0decd7001955530dd5c10b
3be8f8f1c486125f6da08158c6219b632e1c380bfcc9b255a2b7abc459873c55
2a3222f60e3943086066d9803d675c01b3c5e8fe411ea28a4d043ba5c28ce37c
953d61e06f875c5023ca8016e8fa75f385e0e5d88ef0befad0aae7ea94f89d00
f87e38d51c06c9da9ee8fd55b67714a6ed7996d77e04f473e9404dc958cc09c6
d1b883ff2d35d4c02df4789b358c54c89ca5e29b4325be6a1c5abe172f99cb81
0e6655e16af2bad6c0498d2698fbb1a82086d4d0c9e35e847c57843cf06cae35
f2f2a48a8099548d301b3b9a6cbfb64b01a9a0300f8ef60d17e963b1057918de
3a0854d79a8b6c1713557561e8061fab1689ac8a792efc9ba659d55ba448f712
2fa565d91c0793d30dd20ad6f44b3f55ef510f3a6bd30fc82d9a5caffe0a4a7b
66ec9dfe5e8ab82f726ba1c1702a5c41282ef6ebf8dec9cddbc8e429db7ec8da
7304c1451aa84c29ad1e9fd2896dcc3d0c71be1106cb5f4c59ed928c05f7298a
9cc9c81ed0ec25c1affeeb285599993285917b344c40a8859609dccfbdf1ec50
e11e315748a8e3630b5e3ef33e4f4e41fd9e00ba488c612f1bccb25b889c5f7c
fafab2f3592998ea53e090d67f5ed15f7be34355f08c20d3b87bb17fd7d5c7ea
0d642d944fbaedf8232dba8feec02560b2c543a0f2d48024a468f7fb1ec0cc96
571974d5909c18e36aba64ab18e10886e6087e526311d8d22e8ecd5fc9a23534
b6f77f962743803c74f86c946bbc17e6353dae6ce849cd8597d71e11ea54b595
2dc9be4bc0d168d1d7bc241cfec205745358ecae0215bb273dffb9c14f84f344
03d723e839ab16179fcf255788a93e7820db3469dfa7f7fbdce1e2633397b086
d90230840b596f0ef1aa3ea0ae9bf7a116ee8a30e537c55b27a88fa825bcaad3
f140722daf5c1e14be850dc3540507f73ce36b814d4bb3dd30026c84aff41d07
2e5db76cd24c641b78b5ddf032533a39afb3f2c6dbca7413d715585f16e975b0
7cfb6f6e078226e4e8c8d4827544411228c98e08fd727fbec73e4e53b3bb7978
57f15ad36bed50d908e6aa9e5b21a1e1c67b5b0ac78c634481e2a54f47703158
ebdc46df664d3d76c82e94951794f964fdc0e1248bd22c17524468118c97fcfc
20a92b971a86a3db414bae904dc54842fa94f4e926a168d800c760efcbb00683
e81cebbee2858b7ffc92f9d74eaeed978c2fabafa827d5aa2870cc53ef795116
3a702e18735c278d4dee08869a2442884a809688c81487b97ea088a3fd922761
697ae2d5f007be138dc1e0e3132349f083de8d046de69dfa268ae542c498499c"