void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=60.4.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="142ca421e384f1015446fe16073d21ce17f9306ee5c12fa050991943e1eb2198
555a5a195dddb34423f2f8516c5d2cc01e65364363b7611961af4ae018fc8f8a
4388d058e653c4ffde2c83602a989fb57f4ce08276e7ea15fc5fb2e4703c525b
b014bfad34c97890852438e727b9cfe03cd28334c2c04b7e8244d15952a1ed18
e73c7458d16b365db3b1274fd450259e5e44e50bf7350d14d412b45a719594f2
2969084ad12be6b86959e62918c2605186c0320053a113e33aff795c14574eb2
62865800afe20ae855e911f1f3b6cfcfdd3a59ac7c099ae73d00764b2b085d27
0831ea66281fe261ed6e9fc91b30ac5fc7eb3a6ad7ddaf50545cbeee27f3e3ea
3fa9fd37a51c99250f6239145bf267a290971e8a2d1683b117dce051997c9db2
7ec556ef2eb0b7b894548d51def1900cfdcf901d7e965dd70867bbe744d82297
8014269f81c9fb155609c2ad62514537c9bf2003443aa12f46165e6a801191fb
ff45f720f86509532dc5f20086bc8909b50f34c9e5c7b56e750171735e1ddf46
fbe50c8af4e3c6e454d760a0561ae59bc4190a4be40e6042408c0f8178c05680
1be8bae4121eca2dc4d998db321c995278112264c0a2de9e52fb4b036cf4325f
353ed430557068607bb5484eb5b40986ba01e1b963f6943c08a2b73b4ef09753
c1ccb289d140cf1d3485839ef6f6a8c5e3ac5d26a6345190a6856ae1e96b4e7e
4e4e5ef4101834eeef4fa6d7512d4317481e34b5d46f7d7f3764a1da999ccbfd
58a4160e6f4523afb8fe3af1c60af4350d771db21c109f94d1967d005cd5cb4f
465802cc33b6354d78bfb3a9b7dfe36c58cd25f39e457c2794219704df0cc9cd
e23b17cf928ea9c463431d55fc6fca44187d60c6e3fba9979afdc6ad9948f526
c345f58742f45dd064f7f3f16c28ad50c8412660b32e9be2544ea60915ce7201
54d43b63f461be233e52badeef707686fc628ffb1a0b80a00832f7a87d53dea9
3981da8cefc8c9849e1b6e8a8ef1a9b6eca19d0a916f940d6d2ec849191c0876
7b71884496d24cc458f6aa580cab747e278c0f539cd7b6801a9a00ac38685ac2
bb29e592ad55635b225ae012591e7a4899095821b08c94e746e1dd5fcc466644
463a1cdffa202f988ff6ccb625b2d3ac1189fedc7b45133a6325607ce6a9fdd3
cc4a5af252c25cd01addfa830c2c5e94f0cbcff23df38971ec1f558074463d1b
b7844fb21de6f0869cd73f6fbcb1776d75b868d4eef5280eda07b244300a0db5
9b3329ad59e683df79f9e40559ac2e027e529bc8087fe90ec2348ad7718aa98b
e26ea9111f48d48485660191b95eb065712ecb1ddcf113f53cbc36972351368d
adc63dd5fa09654d263f73a2bfe651be8483a1f58ec781320a8b0c9cfd387f90
1b91e4cc527100aab2dee8c15cf6dcb630d37f5d0e8dce1005bf2e830f67b475
4ddd943c4b21a89ef2ffdeddec7c4b5aed94cb0adcb687b8cbf50c04f1c79848
c108fdb6457f9d5863b18de01bac6e4488653dd341d4c83ffaec0be2b3c8e7c2
292f23da6c0cce6b58305c51809282f84c0b011052542fdbb10646c6e5858e76
b445050869f3fa33909344cbb20c15be4a68d207c046577ff2e825db57de45be
90b0e41ab9637804ff8cab1ff2974a625784a08e69d15cd5b81c88aafcf0d452
89dea4f22c65ada7e81d014cd006ec14fca89dbbdf2fd94a55786b687e4c7bd5
34e5cc92b559f57e808205b6029035c8a6817d25d554bf9a7179bd4ff30c39f4
495c5fbbf026aaafa42077515a2fbadb55d43cc4ee8f8787be9e05d7941eee7e
92fd8404c5a8068e34fdac8a5b98cfe240c35d55cb39ee69a5dfcefc51ebdac2
bf7a352d7a657f09fe1cc58f5c244cd60175c5c7b7f8680c17a00392e0cecfa0
41a19cac8bd9de6b88166135ae9589d67285ea036354be364ee1d67a00d4430d
2a344065f7c5c99e82a04e0e68bd048ed3973f65a6754086b47dcb30604e7759
a0c089fb064aeb91406b1d01db52dba3bac4acb6a476de5ffd22365aad4cca4a
b8bcc8ddc26071e0715e94ee2019887ce344e9aff7f3a4a935045425cdb2a854
3069b15f8d89dbe2aa4bcbde4cfd565cf7c4bc6afcbc65dfcfe95145191a581d
3af0514bab03075e44857f8567a3bfdacc5c99549694b9af0d9d499ccb7bfcb8
6da1aefdc798f589ce3c6f41cc37099f345cdaaaea9851aedbbd3cf6256c49d5
e295ff95f42cb223c06385b1def1c95cbca0222f475763db410664a8d134ad8a
193170d3b22752635146fd825b7e350d29133aa4b2fdda6e82e5a6e7cc386d7e
6b5a6d4396fec63d35c86a4657e4d1f4a8adcc3ee1587f4e37d5c0809f45035c
df16c0f5e69eaa3a2c62e35774e3ced68a87930ed8124737aea9aeb7000d2d6f
124b2d5e34fdc4d2336bc42170590c4185ab3eae593230f3d13b1c95df373320
b2584a3419bb723a1f97a4cd1588528e4d62bdb03dcce3840b36a399e40c4b29"