void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=78.9.1
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="4fddad63b7354b9c6db09428d3f73918d931768f61ae126596ae982ee00a6f9e
ea442b319837fec3bdbb80cec6ec5095f621caca9c784de70bdcf8a2523802cc
d93560c0870d361eb7088749dd88e1e61d1c68a4770b487863bb9dfaa770663a
c568bda96a224835ed6ac5acb0bfa997fa847fe2ef3d5cba8c3258b682d80019
e1494a55fa057d58d1709275a79a56af4e018f6210159bf8fa1baa1189b5f0e8
a6243eaaa5e06ee93f242c9d79959cee2b295fc281014de904d8baef2c27c33a
5e2f59621dc5af683ad7f436c6838c304a6746956874b6089c25b4831c43a28c
3855cac8661f5dc6567729418bbd398a1492b53f71e1af4ce5fa3984ad42a447
3f9d4b4d23272213b3ff9640cf053c788907dcd0f780c03439871eb7529d48a7
7e334735fce0bf7263b667a1d2003edab972aa83d2f8e7765865f01da28fd6c5
138ab3c032ed48178c399c610648f7a5c44579bdee4021446771ac5cab86233f
6493bde23c0909295c1e2d784ba317f294bccd3ee9c3a679e999c59bc02899c3
d579a1c125082e2dbe78cadbe0d0d45f12fff3ade7fe73ce652d23cc3a906dbf
9cc6ee40f58a1f6bb8ca8cf965d4a558a2e3f8583474f06e61e34d00c5e342a7
3ada2f1216617809b0b3330e6d825a65e2901f9a86bdfc0f41ca0545bd088e8a
9bd2900ec74cb8dd306df64032546255d603c9b324de9d057c840b42ee1706bf
1b11b00f7fc9380e414af33f62519ca0da1068ad446815768e169b2494e9c8da
68f91ed0da57e4783240c500d2a19d3b5de3b21a5dab61444d29926698ebe793
c1033137d32c87848cdf85d4bf8acef36dfd85b20172f3bc448bed64280f9c6d
02062b3925df8c511f313cb973f55c41e1585e6891c95013288d1715d24ddfb7
a1365e409d1eb897317a39c7513c1703e9fb93595d43a0820a579246381f1605
d1622c075e451eb5b87cd1ba9a19c0abc36289d99b33dfbba6831df7ce8b3f53
3ac54f983ae0adc2395266f6a882ac56583c87ab3f6345257c507835c0c2d14e
a86188f64f643175d760bac1086b6b466a4a657425596cd79987a76ced42a8d9
8a0cf55c1eff56cb5c6be354b96bab973c9852dcdb39446822c0eaa555b950ef
4ef44068b021fd2cc15cae58bbda4ca86fdf3f7b2ffe23a86d32cc8040baead3
09e81eeaa1ade640d7788fc927c58a0a290fbbc84f250e2e954e594c8466b528
dd5791a364b2bd4901d337ce58f4cacc4640acbb116d98d3b38ab13ac57bfc64
3073815242bab5a49d6c9412f963e7fbeff8da1bc5f7655c66a093ee0459dff6
5eb605f125548132cb9e9ce65682708423f31bbaf84767d87d0c743014004563
c85771a299ed01b440d8354d7220cd52f489d0a7364c5e1769b178adc27c3d17
adec1b156f39f7f2e0aa6a7fe19179734629077a7e7d387332bdc2cbd205ff40
b50c4d047c042194c8150b005f5e3666bebcc22fe7785ca79874ef3ef1a66380
6ccecfd19cf3ba6dff2da883812bff303f0b36001d9ae2663dc3d2cb1fd87363
15b2744ebbcb1c6b2a935821f3059265e79678fbe34a07dba2525c7a3a160eb6
44069899ee9f6bf19e4b4a9cd63d83fc61c7f8a882f24ff34d5161a7dbf8ae15
24986599a7cc2cf57d703b6d72c2aecad593dc08b2e0184770e7a283e6f7f7b8
104f713c761beb7de9d7b5aa8be3dfad23f6864a5ba0f67823cd61e31979ef57
a4d5d0cc0cdad59f66b6d9f76029059e29619c838f022e322046ac210f963ac9
4b1e917f5839f21a73e5595021c07573238df0212a984a5467adfd637cecd64c
f173d29ec6506635a622818b7e5cf2a11b0b7b5041daf555a930410f9d5cbf4b
5699f89669e88c82a656488b4ad27d18beccb4db1a2293602d1e742628315a67
842afff69b6fcac17e603a706b1d196aa3b4b875ff5139feb4c39324c2244563
de2499e4e04ed0bff3bc852f5e85baf60e4223d68cd323375d3df87f2828801d
47cc9d5e63e5e99c066dba6bd1db440fbf6cd2885ed51af9bc021df892e4cdea
89341fe50ff3655e7c41b8ad3097aaa745752f048739ac21652304e805491ac1
fc23e405ed4711c4b184f238e58b2be8705664e22038201deba674efd2315a15
b52ee3d71341f581b2b1b82764fb6d98e59bcd5d5564ad069b0f6220c82385dd
29473e268c7a89302844a313f0ba1be93580a3aa5c11e78469fc1e73c6b14e50
3d1f7950d66db5d01b3972ccee16056bc495866eff57b8c7434121d5fb54fa14
59027c47928ccd0a326194dedffcffa2cdc1d73e9ee8d9e7edb87f9e0d8a4d37
cba44dee27d9a1bccbd23fcf46080e3e2e2d8b2e2bacd5414542f10824d9a969
de72ecf79efdd8fd97ead8af456fe02eee3725f5b41d96cb0c5c1e391a32e65a
6f9d8cb48f7845874219c6cef403d037d52ef4f465e62494e53d43e640b7e1f7
8c5e997ca6a2a512d3ad72424d0bed9d6e9adddacaed5151ad153529e28cb67e"