void-packages/srcpkgs/thunderbird-i18n/template
2019-09-16 16:40:04 +02:00

153 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=68.1.0
revision=2
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="299c3cd104a772caddb3f9846d9f5a9ed4fe458107d20fbc572c6f64ff8dd803
4b2fd0ccedaa53d563109c49285ab94fb3253574bac47e9f15e08f9292822f0b
c9c3ef83e168053ea643634bb68be3bf535f5fa034baf510037b039caae2be3b
0ab37e7610d867ccee8cbd60225e3411a1903bb66cf122ea0a76b8a3143240d6
2ed1f39b05d7c796e72991b295dd7ed0a379a82d9e04eb71a02988d31bb50c9c
5b8f52004ebb534bf56b7f50a777cfd75b9a9afe1e56599d140bacb6070a9e2d
8fe713b8e40ef6dbcaf0c9b25a746c6357ca9f8199b4f260d70fa52df32b2e8f
1de5dcb10200cc0f4c18460818e8f4eaa7d6935798823ac7b940bdb23bd71105
507a951afd321672aa3afdf3929dcdd115a0467b6c9a44fbd1a8f0da6834766c
96acf1fb337ecc7cedbed1f5645174ec097b13d4f991626ac82aea1dfd51263e
90e33e95e38df7f5062dcc75651b32ac2b8a33c52488ea4d14f6aa599ab0c326
d5d722c13d330a4a7cbff2194a0dcee38adc4a9c991b190cfa6fd34d6386e204
ebd469af94e084b5444e199a9fb0d9d78b9883f7344f17e3d40d4accb408937a
c5a620c0bedda19473f016f974d5c0f2d3059dcb50378c4508499d291939ed03
5080942902184e756853be14d638230e303cf759a9d2624675aeb10bdec6af63
c8cd9bb150d378a4b31fb39e7c599ed2846f236bc3e9055096fd6dbe47884e3b
9b3d4eee8044dd8aa700d4516624abeccf5a07df6eea85c8c190a3f1d8c7dc38
b6b890964b13a96db89ef0df67875c57f312128fd65c3d2bf74fde69b7e50538
4f1583824df5c2cf1226b0ac4e273a84527c2918cc7693764ed9ca29d70c2ec1
b2232b56e8fb57e6b7afb5fe2fc3d0b0310b859c57007757f8728a265aea2168
3b33c15a67f085ea3ba09592aa6838d7fc92c15d896970ce6c14f00b995c9fb3
1ef54e007d31be97a4cbae13502102fbe4a96c5aa10f88cf5d8668d81002ea96
d8343c9929471be60a630c02813f22dfda92053ebd7e015293c074416e9303a1
7648f75c750bc2217dbbe2cedffecd8adac822e5ff47c8ba90852f710da50fb6
68b87c15541da22030209a9e778a3f6630a28585a676eb66c83c27438bf0b502
43883f25a5900491b9cc580d3a915ae9a2f0e079365ca7ce270d896e80c89516
941bf45eabf44913061df016c4075f83774bea40fb8eac30d0694857b4b794fa
b1fba58a22c5f5ee287bd6ca318e86af92f1fc36dce450ffb8d762a2acb5d4fb
5e2b2d25586bde17f91674f9f06bd32cc8e49d3e3f20666d5592f33de67c9ef5
1d6213971b700be7de8e074e2b5a78dc89bc75cdbcd3020b9c36d423d01fbfac
fbc4a8a47adcc79394e12108c5187e274cafb5857f36843a40bb4dfecba3fd13
4701efa9204bccb8e37f0be35487908ce21b3bc7a654a230b5c925ff778a815a
3609d9cadfbf377ae5bc115c5badbad6000352c800272bba75663b9eb51dd7ca
a54b54f2e07e9127a0cb73bfd6cf19d766603be12ba9b4e159cc848a70fa93cb
923ef8755962cbe7871636d5dae60a4821ff9dd6a61cb5c610fe5290511cccee
baf929ad8c96da4f90920d3a00e585da7e400fef9a48dab283ee1c27eca86914
c5af8270516f87b7ba3b48914bed4d55a7d2dbb27d847c6d408c9e71e4065fbd
7128daa26fc5eab437a4a71ee76f4678376c4fee1d43eda1fb5d081e1f213a55
949646dba79b8caca43953360887cf1eec4b71c2fa695f4842c6e7fd5503cec6
30f621990e2f54c4c9e9a57e1efe2603088158593d6315bf8d333faa8c774680
cacbea21c271f54657fdf12ee50e6b4e9e1c6cbd99f4848609b888748a85e4ae
dddccfe6dc39514598b59186fd26e59287cfce4e16e23e68d7f3a0eac2a78b1c
24c14480fd5fd93c8f327464ef77e619e043bbe0af682ad8791039b2f54cf693
6c97b56c97a0e51dfd5ba11f2a4c6988580f172217d70ea99d7b0f1cfa01d6b4
d5f294c8e7b0471be3cc501e419aaa62e5948c8d5b916bfd6d13ffd82b794610
0bfab08dca7ca8d32f36c8daf02c9bab7d88f44a87027339e2418f2a6dcdf134
dd3e7ae3b7f6fe0de56e2cbc67d4fa65d4d5816aad93508afa60ff8c62246823
abd21a9560b8be091e1961a4f350d161f2fabfdaa05ae86cbc0334feb20bdee6
95ba0af507f9f665631845a76a2a494d25442c939f4e5db9dd96f1bf0938aae9
9a8fb53132614122c7cffa6a642bdce84d02c78205656c2382c49bf4aa5dc2b7
26901add0592a4b29cc54940b73dde0b3e3231af3d4d0c34be056f12c1aa950f
64ab10bf053df33d19f6145a51edc22643d95f6e0a4e3a4049dd2a14bef32317
534af1dd87667c451f55b00f9dd2f8192160d3902f8976666b3be85c4fe0f353
bad55df7f823c15ccb492a4468dc3507194ccd1900c9771139509cc17dc7742a
47aee2cf1c4a55e432ddf7ef99099e1ef5a77d6fffe0945cc889b583048b2432"