void-packages/srcpkgs/firefox-i18n/template

233 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=63.0.3
revision=1
build_style=meta
homepage="https://www.mozilla.org/firefox/"
short_desc="Firefox language packs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2.0"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ach "Acholi"'
'af "Afrikaans"'
'an "Aragonese"'
'ar "Arabic"'
'as "Assamese"'
'ast "Asturian"'
'az "Azerbaijani"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'bn-IN "Bengali (India)"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'cak "Kaqchikel"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-GB "English (British)"'
'en-US "English (US)"'
'en-ZA "English (South African)"'
'eo "Esperanto"'
'es-AR "Spanish (Argentina)"'
'es-CL "Spanish (Chile)"'
'es-ES "Spanish (Spain)"'
'es-MX "Spanish (Mexico)"'
'et "Estonian"'
'eu "Basque"'
'fa "Persian"'
'ff "Fulah"'
'fi "Finnish"'
'fr "French"'
'fy-NL "Frisian"'
'ga-IE "Irish"'
'gd "Gaelic (Scotland)"'
'gl "Galician"'
'gn "Guarani"'
'gu-IN "Gujarati (India)"'
'he "Hebrew"'
'hi-IN "Hindi (India)"'
'hr "Croatian"'
'hsb "Upper Sorbian"'
'hu "Hungarian"'
'hy-AM "Armenian"'
'id "Indonesian"'
'is "Icelandic"'
'it "Italian"'
'ja "Japanese"'
'ka "Georgian"'
'kab "Kabyle"'
'kk "Kazakh"'
'km "Khmer"'
'kn "Kannada"'
'ko "Korean"'
'lij "Ligurian"'
'lt "Lithuanian"'
'lv "Latvian"'
'mai "Maithili"'
'mk "Macedonian"'
'ml "Malayalam"'
'mr "Marathi"'
'ms "Malay"'
'my "Burmese"'
'nb-NO "Norwegian (Bokmål)"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'or "Oriya"'
'pa-IN "Punjabi"'
'pl "Polish"'
'pt-BR "Portuguese (Brazilian)"'
'pt-PT "Portuguese (Portugal)"'
'rm "Romansh"'
'ro "Romanian"'
'ru "Russian"'
'si "Sinhala"'
'sk "Slovak"'
'sl "Slovenian"'
'son "Songhai"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'ta "Tamil"'
'te "Telugu"'
'th "Thai"'
'tr "Turkish"'
'uk "Ukrainian"'
'uz "Uzbek"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
depends="firefox>=${version}"
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=firefox-i18n-${_locale}
depends+=" ${_pkgname}>=${version}"
distfiles+=" ${MOZILLA_SITE}/firefox/releases/${version}/linux-i686/xpi/${_locale}.xpi"
eval "${_pkgname}_package() {
_pkgtmpl $_lang
}"
done
_pkgtmpl() {
_lang="$1"
depends="firefox>=${version}"
conflicts="firefox-esr-i18n-${_lang}>=0"
short_desc="Firefox $2 language pack"
pkg_install() {
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/${_lang}.xpi 644 \
usr/lib/firefox/browser/extensions langpack-${_lang}@firefox.mozilla.org.xpi
}
}
checksum="133a31ec9eda6f5eb0bfa38b0f319cfaf5c4176ff619a8a505e71af4a7f365fb
6d60477b462c45cb4e038e2b00aa4a31c7f4bbe138a1db14a7c4bb303848595b
f12854a4c2ccbb2b81cc0cafe838c9f1a545e912e34b9319b7f3af9ce7061629
a0ae3906017de26370466cea30c43c7286d0b46acbb8fecfc61a86c97b616f6b
6798a1a6aec24e48ae494a4f057c45e3b7ea31488fd7eed486ba1816f442e3b3
362cc17e42bc625b8514135ebbe7042ba94074d978f750594035c409a2f3ebb7
e91aabf17a379952750066881acc09aa3dc65082ebc101e08e279d48c382af54
f514fab6434fa23f9adaa1c52ff9067f2c87c5d8c6396ebbacac6aefc42904cb
671f94406a40b7dd2c2adb2fb913cf42b7bf41717c44e81bfe522dd856e30988
4759803e520bbfe1d9db2289409b1e5734c8de19e696802eb1f43b72b092beab
d7afc0782af3833e97f2ce711b2d9f4e55aeaf5df8efbb9b1382b45ac0b1f2dd
c1bd25609ef30d86173e0df3e8e99bd6dbff6ef40b0f098052968346bec236d4
eff1783e942af1193510e63651f41ed9c191c1a47c44e5d77a8469229b74e493
c3b5c3113e311ef375150613057cedd81aa8e69ad1bac7496ea9266640e7e739
ad78a6ad161386695a2825cd3edc41379c414876f53a270a7071d04737b82564
72f59287425933bfc824184dfe7447f4cad341404a2324b9f36cf3086fb5c83f
7a9477642f7b054b1e24fa5d5b9d59ea26438ef45aeb8e3313547186b4e1cd17
377e98788e41f5a3a000b41d9339d2f37e497914885a00320859f85d42fdb79d
14bd321b737a79523f28ce5d9ba37df985e5e260f2b183be66f9674b112f5802
5ffd4a6e2a908612fcf55662f573b8b51e928957ac58a6b07a8be36d4b794321
e452895005fd3c35697f610f56aeafe9d3d1eeaed64ef5f0a9efb9a1a5383a27
73f6fc1ce107695a5fdd4f3eb5a7f3b462ea08b0a3912356f5050328332962ac
4a0d0e51d27edb1148c91e0cdd106e4c663e67ce04fc3db559bcf0d8830c447c
c3a3184aeeb6eab44e1a353caa79a5bc6c7e620c7fd3ba8c9b386811cfcece67
58478371f7dad87b673494af6d17b654ce04a6c419c8b6d5dd37f4682eef80bb
52cb334d461cd010377cfd35213cbe065435168dd7a5ef1d85570e3985b8fae9
09a6f406be1a71c9b28da92aca02b6cb12ca84ed26fe8dfe88adacd293d1dba9
c8ba72016e05fb2ab40064a57feda7964bfbd394aac11b384688ccefe4b7b558
2e6b5a78e7def20c6c00cfd8d1c1be84df4e62dba23e05f13aa52a0e7e7fc81c
62eb5ba195bfb11f001b875910c76c0fce320da711e7ced8c7b06ae31cfcf2f1
2ed251ec4bd183b0086e777a01992048d31271ec9bf9869d5a070bab81cb3b84
ba66475a7a152b35f22454074a4160da2c52c229c2fb60ca515bd5a020829969
30ccae32050ccaba4f3bdd7f017f57f0eef6b75e2e0666be7a8999791cc4193b
79ee324aa4358fc494e70e05bd0948355d79688e9fa3b74591a0489c44d7b483
cea47e257be67838302e37821fd59e837fe68d30022b7006dab93e3dcafb84a6
e5114e840017814a3709f2924e6d9372892d4fdcaf441fc57724707033d6732f
02843dfed7c2994ff6455df1f064555a5ac8486dbff00b2380442f3a1da5320a
707104938e8508dad8b9566e09571522e1a5bdb34cda6b6f534b468f3296d987
096c923791bcc08579973427fb63e3e1b14008747b5ba33dae51bf0896f1d177
48c865af74a1c6b2f54878575f124ec424f9bc1c9fdf62ca57c4c4096c715f0d
816284bf26a9b0a1ab7d34a146eee722591635c88cde12b0b22b026828c90804
82405ba755711962e430e3f26eb8906044067ca51167d33ed435e74f4fd4698b
518c56f8bf6658b997956543f6bf90f721397c79786b4b1a82bcc550d51f27ea
55c737c0ea6fc74bb49a2ae58d2e66fcf7068a2d16014d878191fe3c10a5b6b8
7eb1617935706ff6f217af84901593f36c8b804677359e57dc0263a32d36be9b
0dd11f24d4708bbd365afa14824af9d034871455b4b39aa9016a85cca2ab62ad
335dc44396a272ded14d59ac8e8be2f3b1ab44478680b1ecf8f1e8561ef2cc00
a16e59f8fe24ea8e250d35b6e3bd9f4f3288a35a65c63a22d9c50a26e8451de0
3ae1bc07c94a05e209dec8e04a87035026fe64141944586d77ed088fa5f104f1
8a3b970adfac445bc18e9051f3dc5910e3649112e618381eaeef991fc50a6cea
9017b89abe511039143cb48045e8dddc61791ce1675ffa560a079eeeda67d066
fcb51dc8ff33eb7836bbc30b3b1c9de1cf3cb296105c867c4565eb334fed919d
cd6e861266b2e0de2cb49fa3c9ed4e9e5b779d2ad672769ed0abfbb441bb2a30
fb3b470673af37d57e0458ada6c505fe4d08107b37bf271b098653435e1b8803
c6469cd91f07c845759db65eb9600ec4a6b0acad9d036bb6c2a157c753ee751c
e3b2b389a82c47bef00f9e5458097ebaecbb7150dc8f4890cd626da6225d2acc
9527759ae962a504ff5d3c2c8194273beae0906ef9d125957de3788f00bb1ccc
5c40ab1a51ab5143e08700df6c57b3d57379a054c5d45a1876ebe5daa0ee4105
9a950d9252d096c2fd88d8cdeed693f835b01f661ce277faf14a52c5bd96348d
5097ecdb31910563f8ee0cd267147ada40167c5f218817044f560cd9e66e6413
f0baf8541b365445cc9ae8e2ff86c73ba90fb11a7f4b1aeae42489a79a52f6df
45cc56fa796b8357348d77035454dfbf7bf7edd43b3e1eee0db323cedf6a1761
d7366db105776fb9b560a9649a709d22f0af51b3e23d282d395061e495cae09d
6bbb6cc2e1409bf1e9b47bb8a09dcb3831fdc01c0554ac70a5d3908c90122790
f1cbbdd4c5478fc94c283fb20fe83e6dbd7e971ed26c2e9bfb7f5db3a088cb99
144dbfab5a6b72520c07bbe3080de28a13427d522d9cbde750bb0d062376c2ba
3849a4ff407628fc6980c8b5a76e35d8cdc11f213b26657c948bcdab3f2db800
c4664366d401df4bc0710bf7ad2e7f6a3cdc3591fbe3f509a91374812b58f3f8
d5bf65a8f4e5279d08dda798e8d9dd6380a16ee5cbbe96e680fe65b1ff531a49
435f79e0b4399d0a99c766a65b243194f299cafbb17b98b4d6ea8cdf4bf9b4db
010ff111b72e74470697411c90023b1333f1369d028aefba8cbffe2a1ac5d7ff
f84cc74ec6b2e30c9b82f8d479bf02fca3c016a6c13c3d39470329a217155b4a
72064d54939a43b790c842124c0a4cf07f281cd1d021aa4e1c57e494d2d29efa
6663036a129cbd90198f424732302eb3889d8992466c5989751466c611d848ce
9ed36fd9b4d4fc6f2241106b885b173b559a3e8a1ee7aa4215befb21ee1a72e3
070ea96f27c06db3bfc4847ae160b5da8484c0d2f5a8ab987be124904e49e3c0
f16b8e1f6cc00e9cfabe6e85131528d6c3481fcbf10b54018af1ff6a347513c2
8c449f610eef3815f484ac319726d4b0d81c9ff0a34cd36da3e44a52737fd373
43b9ce02b704688b94f46e4caa63f033d2f41e57b4ee64e2a3fd1f5154c0c9e1
b0ef14f3d558eab46c50294beb5d9b172cf4c5186758fac91770fae5dc8bf8c7
45bbe7ba73b7500c31b985821daef1afa74e94064733f592b3a96121f9837c93
6a007f99623cbf19d0deee82e5d3cff7c6d4a5b584874cc34536d04361df522e
631882baa642575b51cdea8505417a754e6c54e8a3b8de52d898db0e1dd85f23
9f7b360951bef787411f5bef3446cb0a607fd508a4140bf20272b9458d179086
c4a03399d5839d5f70b5dc84522461fc32f65d31ecfec3acceef2ae0dc9a720f
1dee514b2682c7a161ecc2c0e2601e1331fec844d252dc42f7dcd1898994b87e
f5eed40ac638af044a767fb0dacc2f532496f619d3a4c37fff680f12df5d0e2d
98a8797f0ec4616b0d5c2a33587347e59b5b7d772f11b95fcde9cb6ebd76b95c
04d5244e5f46b3862dc14ec3cba44803f2e9c00e62e16cdf8afa929d3223ae37
bebba4decb4cbd6954ac1bc6424abc5cdbeed0c22b7ab5f72d3d5ae35d7d3dfc
b635ca6a5f27b612d9779d55560bd9b414be802daaa5dd3be1307ae20604edd8
b8f51991b82bb255f17a8f28aa0b457bda42925e004f27695a7be518f2b96809
c5108e03edc50df28bb38b3af18d2f6fb3726b76104719d2b95d0432819d2d20
c52f63a9ad26abdc9eded3f78a14b6c9a93790225505ff760a7ed169962b3eb0"