void-packages/srcpkgs/thunderbird-i18n/template

154 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=68.7.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-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="fd6143192035bada8bb866c81b003326f5770c60fb04d8f1d442e9e55c0feb41
e9d44511315f67a60a5b7923e7fabca1109702ce75f6fa454e09f227c74f27fc
4fdbd9e025fc0b6fbc1e2541fb22812116f6c7992b9a99246af1b33796af8f86
0c9b1e354e7c5b25a140618f3280ec77934dc2ed788d40b2fa63535c3558f74d
5eee2e724a978f70b5a38153d102c69e87a76f7a7169c015f7e28b81f96ec0ed
8bb94bbb1592d84e848da35f0931cafe8ede1dc6dd6c85ac19d4cae01771bd90
3f340b7fc1682a484c0fcb55eacd592d58fc3c51f1bcf4ef68de4b743bab432d
ea1f9b765c14b529fc08234b3bef8552dd5adb857e7d1048a04a1bd9dd37c527
bfb24e5d5b542d55880539ccfcee8ff2e943a7bd356a4e341c0477b312b8de5a
c8426af05ccbfe6b3d66199becdc4051da6d709044eadd1a96d064040a920a29
6005dd2d31c69f66f6110bf789de126ebfb57a2656aa6c5a114db6dae9264d3f
2e70d98f1f68379ba30076904974af136c47f0b99874b6c2985ffb425789e9a3
1bc0cba1c897099695ee9be9f1a033b2bb626425954029b477251d5e93a26203
10a66f6c777a6da8b664d811141b0f2f32e1742fae309bef40ee15f11ea34f72
00639640a09530fed6edf858a9c3e5eae07da1224894e7cb596dbdb16573ce29
c83df7db116425477ede46642f8d0ca808d7a2ecba5647356e3510e2ed232788
71ebff20cc19da6347fcc602931847d305df7343df0e562a86a0bbad6479a32a
a58af37327bf3c52e72fe33c627da1efb72f81efd8e2c736ed7ca3b7a32416de
17733e6dd055c74d414ac05de6603a4543408c29f5ba0c4986d932b0d302d476
e0757081b999ad106c5c8c98d34ce3191e1040fd671f2451a4f2f268227b0cc3
6fdb16567b3b506a8b0b44df104569c3ef7abc43f59103f85fb916180cfff08c
e1b6ad27fb55e3708bd75d1e7b1fec3e6a5457d5a5c6347b546c20f6bf8b8948
593c88037965f594394e1221cb603ad3eb34de4cec71b3eaaec32db455bd8554
195431540bb97738f7a210cb01ce78df09787d18d93baf253b6f86b3e50870e4
f1b3c611477da57453022295121506bd3a1e1555195f93aaff189c47b75e47f8
98517de0cae17a6a22312debfa25ccab32bd431a16cafa631a117f730a94b278
e4671b3b253c620bbed2ae1d7ddbb847a6612dfdcdc329feeae32c7f475820c5
3ab88f730c78142304738bf3d4370b3034fecbbaeed28b06cccd89177ed29ff5
1cf979eea563bb96446fefe6286f3df3040e09588d3a2569b78353c4ae211c82
af5f6c6655faf4fa213afcbf66287908b1e3749709af4961f58669a2ef7f82d0
b4ad11a42151792aa03ded71f6db3743b99248de39647f9a47da7c847b50262e
899896bb585bfdb20654da90a8e05fc418c90bdb75366038c6ba250abee6dc4f
99088d6c90329e3eac625aeedb4213c802197fa8dbf218fc4660a72f4aa5e3d0
3232a3a78315c88c5e4e710928c44247060cd1973b614777e74279858a39cb29
ac0b4b45484bb20e16e992d461d09eb03a6d4e6709518ad57fad9108c0e028fd
51835898b7f694bc0aa4c3aba0eeb5ea905a4ea16f7b5cbd750c53abeeb9e3df
ff41af3caf8d050256237aa1906349fb395b147becfc7ff1926ff40b39bc8699
3b8524479bd5bf8cfe63d63d94cee47135bb3b118fb845b20aea5ce6f4b0d998
aed5288566e6b230da6e219088d119f5be18274776a0fecd6b6a1ce93e08ae01
b686fb8348310124709cc66fc08547b533d7148a600c604b9ef5c7776932e232
7ceff68400e1c9456beace3b36eb2cdcdf2ade03836e857902770587200b879b
b200cf86d5bcc4d8e4af2883343dfd77a85fc8404325e7a3f8f7c7d00e4ec935
09e417edb515f0fb906e0d6e7a664c178b9d9f108e7d3821b3edd57b2484b381
acce56b234c13501a6fecf74dbe2bcde63ca80d8a11954126c24afda6ce633e3
904266417ceb586cb0d2f915a356dcb3c09114cea1dc2de77ed92510585d1395
440842378de430f0af4b1770969a03b9faf254b7ac7abc6c1b483bec85653e4b
375cb742d381ca22e739ca6067abd0ddf54b72471d0f9f78ac8fe22e1a8e2658
6fa265d0fc3080bb415c04477a265ef197894ece4dc7ee223e96c1df3cef30c6
e2f0983f6e0d0e6496504b52e2ac2339da27a0a2041f30b137bd3b5412d0587d
1f4e6c066aa45d03104a894d26e008b4c1e0a07745f4234626bd3ef0bdf82443
0587f226a22ace41820bb4f7e839605766908b9e81312078684e104dda9353d1
531e824b82bb3d5d67aa1c4359070d86ab696d379f45253a6b531354c6779d9b
7111e98324e4988cd48db554cb1ddebb6a8c023e9bd19fd9d680848519ca9f61
4b85ada5f7de7a6a37ac735c96fdbc19f7e242d6050e0de9b96a5c122c203fa0
e129785ab2a52c5cc58807b1aa8382b06fe1aa63242faf6e65027fd3740131ec"