void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=78.6.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"'
'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"
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="77c0da17d85872a3ceae3d5849655a0dd3d783b365d405d4c2f9b3a243b3e5aa
e92122dfd91a99e7c32b90c5055f7f0c1a5268e0c001da5fc142a9d63261f0de
62d1d6d4f34292549b6ada66ede177b1a26efaeaa2e4d9e0f5ea7aeb6a555c1a
7846462412da03936930afb548657bea5c0e73eb464affd54459332888b6c744
27534af1a57041a076261443347f183d80d757da14157ddba11ff393f248ed8b
c1541a2035e9ae4549c337686c9d8e9e995a32bc6173794d834bd83f404845dc
3791e46378d40f75016ff5d35e66a8cef8aaed45f87368ac07bcec7fa916472f
617f1c23b7210bf4ceccb22a3824a15074e2d9770ca66a26f6448d26beb72e81
e90862ea3b5a6653e9eea25613915392c438ae5ae42d860440d85ffa1d850e3d
59bbfca02bb2ac6853c845653dc2de5ba123b33b468595a356f419c1fc8b6527
ec3e37a0a4c4dde29ba4c538d1efc1e135ef950ce95aa928c617b9da2a3de783
27c42d0537c3e51c7b2289fd25ef201bcd62281b5d844b68c03474be2a1e54e6
b299d69c68a79e3709c1487ae87f8ebf5765ef38f483d148238c7c7bd54a047a
408fe2cc100ea42751baa138b98d62ed78b5bb69f44039f61eea8262d5e9cd2e
913446300c7b3e837309fb137e7f68f62da3c23939287feeb94a5d35425140ca
5ed478e15a65d6ff15683b64f2769e3f7ced421c424d59ea7dba644cb5b84759
2b7d9416fa15300c18b13a34ab709b307ded3705d0ccffc70423ecf9762dbff8
31628ff53e3e87cbce122908b537df030f3ec936def0eb0e50c9791e6103b042
d7233c9efe07e54ec29911a8b27b8bce2b09f59e027687218c300374abc80aea
6ed4dc7f605de1516f9ae175b2b12bcd9d0fce64a8f00acb9a675ac1258af6a9
16a31b73042ffaf8373a977cdb2a2c563a6b49d13bc504569865a305e3fae380
5328efe43bdf651f3ff72696f96e8ea2aa000a95233b6a406f612c6a076ac38c
802db39bd53707555bbd5202c2668c7be92598b75cd7364e6169218c9f1f001e
9f9a547d87133a468757baa38a600ad24a8479231766529c2612d6f7a63836a2
82cf87688f7594e9d882969efd5a5963f3fa3f8b91e026b271fe630b3fda777a
55c8f68d1702befe1782c7373893fac4d9e15fb77fcd9ee4d8345707969dcf97
3cdcf203980d08dd18f0b6a566dc2585140625807f839102f15f0b685312aef6
52ed8740582330ac3e2660f86b07676aa72533180d5a0df411569cda7e0d0ee2
2e2eaf97e024d908b4cbd837bd8d14e50fc30bc877958f458568f3d5ef03debf
44830607a1818da44721d6dfb7c60395c5557c4e84fcbf7936106f6d64c0b2df
1727d70e0a3a8c8c8c6dc049243cd7ffb6710226b0ab7e4e4d776e241c13eaf9
10cb0bdbc88f5718f7a7877d4ec2c5e7fc71e4dd13e0522ec10082f9846fb65c
77740587416416ca7401573e4ba820ad2a3adb32374cb83b8a56e48aa4411b28
7b63447a8ee28e635e7cb060a1df868c6a8c0d11448c30712fae971ba02e132e
a4aa893d47d6edb2e9f8ad6423abe17e39be8dded5f359ed933723b944c6a85b
327cdc48a35fdcae7daa3dac86005d15798fd8ad4ffd47a497923dcbdf9cf386
32a0a2dc3075db4645836dab1d6353d9466328c0e63e183290f345a04e285f87
e07cc90bcb41097ba19d886d2d1e38ef3b3ae2f6d36cf0133e018e40535357d6
669a76ddd841a6559cbfdd97c82961251030e01036831279210f94606d472f05
e6f698313d67ab9da38ff1ff8097264dabc87de85df0e1c363736f60ad0954e2
48ac6b9506b2cae19451845a6d633579ed341e367e4c22f525c5d147cea7bb85
45fbeacc161c4d3e9fa8ba12c7a06b6ddf56dc5aa3c49543f45c9e5ecc6f8533
8114465485f3740e2f38cd31e29e183a91cfe50c1b3bcdd2fac37f5254df38c5
26869522aa4a17cd3965dc35442e6687cec86274cc17d43d3eda36b71e293071
79ede7a6a4fdc587996a6717891a1931f63a07d468d3adf07b4df56402202fbd
76acb24a68cc77a9f28b31e7337c815b8fefa81df6a47d57ed81612dc69c9878
bace543f253d44df294a35bb9db6dd4fbef8d0196a5698e0a862c589519c07d5
8b6bd148954f415265dee893ca94024826c0f3a2ed0c308e3386637f158ed26b
887a93e80fa6b42832e04ebea6f5c1a3cdb76cb6d4b2b0c0c882ab3c80a2c2da
0e7b8d2f3c7b57751cc68aae7135976c9683eb14b703d23b90fe31ed4170b55c
82f17754a013e65ad962e88a709be83eae9a00f0ba62c94bfbdf53eeb099ed19
1aa191b1dd13e47e02e7167063afc89bb091d7a38708fc5d7e8e5c0a34f4dd43
cedb43a69a31e5c889f5dd485cc8036819248cfe8e49c4b519f4854c5dddb3a8
131e883c87b8f4af323007f112ae93bfa8e37701ff4c64237e4db2045bbefb74
f54718774782453f8dfce92e55177663dbc8f49d8da668b0f745b98f0ca854f2"