void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=60.6.0
revision=1
build_style=meta
homepage="https://www.thunderbird.net/"
short_desc="Thunderbird language packs"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MPL-2.0"
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-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="1c5ada98f9b48e8ef91fb9f5b0f79a7036cd8d319885a8c2cb9ea279f06299c2
371c7ba1f05e5b67293c16dc8d98079503a0261c5feb0dd401d07e8aa3256203
1b39e7f6009c77960066dff74c358b93b38b937c97d32319100ab0dac891c5f9
a3cf62cfa6b4f0670935990126326d497c15960c742eee1a885f4bfa6c2da6b6
9c8247ed3c14bb8ebfb38f8f5501f97ddf15a916c7b7844126904df8198e9f53
a23084b8291f2057b896a7564681f82cac9778c4ba667b165ed80f3f20badcbd
b6f584a157e491c6173df03703aab77988009b249a169fce90e9484808101271
0b7fa642e87db99edcc685bef9e8480adf82eeb657576191e3ae6dfbfe5508b7
37a8d398a413c20437e0d18c1db742a34dbaf2b661fe1255fe776ca461dd1ee0
3202aca3db9320d5ecb4a81169fde72a1b16683c42c5798db2a8e13ca75d090a
cce45aad09937f780a9b5224b231715b7a6ccaee28e50dbf08a0a08b2a5ba774
d349c4c76f70ab9496a01828f31c870d7d77f9ba78ba797b29ea9646705f4245
18668fb916fc191c0462fd515f7970944de7bbe4f1754fa0cf058a6b6b7359ec
5a398143dbbda5ebfe68259ef7cb0ddee775c5ea6e7419e4b36e4cd25765a48f
9c9bd21d5043511c300ab609cb85cb60093c13733c34d3450cb8073f468942bc
c67abea8063609e97150b214e7013eacc42a196e278abe395a44684a363ed6be
aa9b059a8cc523f51e8e61454834bd2fc503299c35dd4449186445824d3b46d2
f4dcead66028d53dab5c0110886cd85605420899ec8d3fd0eddb77d484861a76
6b07faa0c69bcece7a79e84ac9edfab8c5272e25f11e436c3ba829ff9584ff82
f6cdde1b559b41871152dddd78c88bd67ff157c90c07d023294a657e2c84b5ad
7d7ce1c7a7e9b907981cab087c0fe5dac4ecbdf21c453da8b4e5a5e20d26819a
28e4b2340c64ab1882252982f11e71e5e49ec1505bcc6d48f8a920158ca5b78d
bd3d9742ce7ed03ab23228a78974ce4dfb0cba5bc9c2506e58d8c4e415921235
faacd97275a7ea3809fae62a5669c73ee723a64bb8289315033b38ca3edb28cd
dd1984baad88f2f8b890d5d53ec69fba651f7330ae4d27c4a498fac326a14b74
7cccef9606f37597f878c771b5f7c6a79d154e82230a13d4809b56adb97ab030
9ad9289a33bcda0470cf1beb0f1b7aaa99cb61b914be59268168951b6702e25a
0ca03d04cbf5416cf25083273dbd54b6743f2aea18203000ae27b5da4139c0e3
e3fc5da2f1c3bf99944e346936f83e728e272d85f129f881be777f3e3fe920a0
6b9aaa078d03d59b6710ecbc1b8e0592627ab9c987248c9a81885dd7b438f850
765772e3dc4cd567ceb7018c2f5d15fd72b4815d7df578ca6a36e7b350f89208
6c6c22f4ddb72b31de4e97a7ba8235c6a9906f26ea68d7252f150ee2567e8ed5
2891877f8201f3cd62704d084f38e8dcd4dacd5cafdfa11798534904507864ac
e7383df36a9856081fda2c465092da340196583237b02c707821b97bb553e155
af20ec64cdfdbc9bd75ec8294cb77c0daddd52cb3563b60628a2fa6d2bb912ea
98ff29fe74e244565576000df9d568aab8840d21d29124099a7cc116bc2bf978
5a8b3695701458a879e667fe9bad096bc99589418862989ee024620c062335d6
50f34880e95bf1539cafb651bef9217ba5aec30a2e8544de5fd52affde74a8f6
13e0af82c7e1ef1d4968b955a3af7a4e84c8bb4083f8f15d70513cc3a4d43254
fd01a828bfa2814ee5acf3b8295ed1642e62f3c6b0689d2595e6281ebd9c4d46
388198b83059bb21019ed6d0ecddf8ed0f3e8ab5487e23e19111de82646c01da
c9b0f295c93f55479f17a19e4626e926f981877e769e432489bc818c162370bf
b88825b58f66623a1ac8087d34b75a90e4c95b9afaed15b9ae6a1fcc3d13f939
660023f25a355c2c51f07599b74eb109e5431b7c1efb2070a0a8c555290f12e3
38d4116e95a816f0caf1c764a5cf0b39046408ee26298291fe4807b590e9374f
1fde33880caaa2bb99ec10cdc99721ae53e294dbcf17fb001cf9b8865019c0b4
6618cd146c3c6041fbbf8151822042ca78bf498b3519d23a111623847478a91d
6b40e2c930d99e8f2f956be78f295110d8d2337599edf8e5719d09ef54353888
cfff8b48bc1acba91ed39c8431453dc0f1b4a5616fcc642365c04d38c666fadf
6e74021d8eb1f2840df8a4bc5c802dba0c88926b60c0076719f3ef1a043eb273
2998ae012642042b13b9ad135b9043608b464c9dc870b81fa9a5a324b7c7c89a
fcb969e529100ebac48d494dbe4a3106d331a896c37051730c8be48a847358e3
216947433e8d192483126a32043ad6f6bbaab4216f3106c9425afcf563405938
82c53502823e8a4e09af2057ca66e8b90cab0dac633cb0fcaf4ecea20666fb7e
f2b767bd23b8ef3333ed5056dcae8e98b6f60e552f83d775515b4afea5297435"