void-packages/srcpkgs/thunderbird-i18n/template
2019-11-05 20:49:26 +01:00

153 lines
5.7 KiB
Bash

# Template file for 'thunderbird-i18n'
pkgname=thunderbird-i18n
version=68.2.1
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="e7bf4c9a52ec052c417285bc0676243850d1986177d0189c7a5cb5259ae5bce1
d31b022416ef8258c1908530e69c77417a2fb743aa65cf9385b493685ab7ba76
709de7a9c070ea1a6002e5e245a9f007a90ad15bd107e77336066ce05ac2f165
d7ca65101fe9bd757ca106700ff43ecc13d0827d9a19c2239c62425f266901e8
1ccd6463008bbbb8d5a9d2028b513a68d40e308999a9449548a4cf638958d143
49c3c69773fb5f050cb40b6c0a4ba5fc5a873b73ec1699f85750e5b111d75c76
4c8d6223a3ab65fd70b453626d5bfac99fc94b7e02d41844e861754ad3a93fbc
28c12aaa78d1419a78840fca3550f92033656f106f2ac1f806a35e2db73d7820
ea9f63c363f2725f8f2bedc248e7fbc3bb6a8151a439062a6a3486cc35d323c1
eb87d83032135dcb67a968d451a157ce8c46a35c9278ec3ed3cbc5f0cfb22db7
2e509fcdb70a50c3ec089169a253e959236c62324f7d2f27618313ae9d5265f6
0cdd0643c4279fc443ec5681549f6d283c613e957dfb8f021b3da0e8fedd5df3
fb11e5c05209ab138725357d8c7bbbb6f164477182c8a8471d4fb97f6e82f87d
a1078de24d4b09378a06ab83f543db1895a0be8496354c19195f954fd6bfe3d2
6ffc26f4ad3ef5198db0561a04b2d10e47603c4a1e3c882f129f285887a8ea6c
842ac2a5487431d0004b96969ed99f730250977f05a38c23d670df11f34cd568
9282b1232c76ec2c92fd713b513e8bcff0eba57451ad151e5e4ddb79dbdc1d08
00ca2cabbbe27fda97d086072396b8f2bf0691e1f91166b3d66ebd28578832b0
3aa4b5c5dadabb8fbcf627f67774d969df7b1d3a2fea677acaa8f24658764194
d494d376b075d395db249f37873070c7d7c90d9723eb9740644e9c5fc4d5031a
5878d3ed9349e09899c26dd8ab255600a3f92014f0f6634bca969e72f05d9459
ca3465959caa3a65c595b63ee219fe02bfc7d65547165e8fdb75ce4fe3890e66
2bc716d0ae9cb050b7bc8c91e8fc2d261a5869526134e4e5ab6e49d2ab785e2e
5812a08cc33b53c53f0c483e4b24aac50490a6ab8fd9607e548a422285883679
7fff2c8c8ead789d60f050c5080fe689aa70c47966a921508bf94fb58ae36734
c2d133ba50fbdda493c6c79c64b956f2f4312f438d6e7267c87a44686dfd6478
80315f50fdb062ef6d0b8fdb67000791e0e4a786286e92d41b9e745c4ac8a12a
873102843997eaa62192b6faee20e7d91528b18f0b6c63a7ce174db7c391fc87
e7aef999a8dd9dc34ac68b88932c7922361a7c49bdacced4f33193e428ac8eda
dc2848f0fceb514ebe2361b9b0e4f8ca96102489f65e7f172e20e86e03d2806f
22adb028a6628771f1ba298c3c940f00d3c9b42dff763bd1a4728c425d760eda
7b14f26203cb86e328d53426f175b9691f9496c01eedc9dc9fa3e2915548b681
dc9fbee4a8d2fc15ef59fd4aa4dbf87ec38bedf22146407e1338002c34e13ad4
cee852545c89543e281cd70878a3c63dbfb29f844b7bbd65b75ebc345b14266c
ad90604ec609132830de063c192110bc182e389d88f1ad73f05bb353610b52ad
0f67a7c2d145cd244f9eae34809ced50b619fdba67bb42faa0c2ea1bdf0c5d94
0b71164d5885b64da7c6bef0759403c4d83450697067b50d35950d2165efb765
86d99ccf045ca766bc471f36c6a47030c231461c22275e73fdc24ec108ce59ed
d9fd8d80d08f1b7e320a6451bfb0095975aa9045ae82c01f9819eb1c066f8821
da55015f90590a9ced5498caabb6393954ec8df26b11993eeb784658cc1dc945
555235d7b436ecf18edf3124cf92b591683ce22ad0f392ee0970011ec765517a
d3b44071ce47c3e5750bb55b37cc4708bc4c7cf17ad06bbddd3bc662b3b26d0e
157bd525d5f4b3171c276eca4e95ca6c3a180ee64c01467bd528d81cc5bb95f1
ecc22e242099ed0cf33c2d68164f9a9837ae80e7932315e9382d6f98b363f779
0cccaf0ca99371969ee4a8930803278521e1746e903a622a0fbc59952d7b55d2
cbc67c89d64042651f4b4b34036c61ff1986367d730f4e1c71267cb5d5114a7d
89b2c45b24bdfd50402a7deec14169a16c38a9a937e6c12263995b2e20753ec8
db81679a780105da062c5b7b3debedcf9b8519785963c1923a96c2c43ea56ef2
db35c350d177c82fb8be3b805cddf665a99d70c353f3af635c3161e14f9f7bd0
4bf79322f6db536d37013a93d11d44fdb5d110c03a2ab74dbdf6480fbf4794bc
23318378520d9e52b64a4433d2f90141fa96bf46f96ff8b4d4d19d8c88154e31
00004784e5c06d0ce750aa6bcc076bbf78df5dc69b2a68d10968da9beb27a204
5e79410e8980563247ff11867aa2dc7e31f80458df900d91c9c48054d7d8f436
2082e0e1bb0cd90a75e0d41b3d307ff85bf53ca6c5377b5012de8e5df83ccaad
15fb2e45a9ad5a6e1374c61d45abd789ebd07af6559e4c746a883a9ef46b47a4"