void-packages/srcpkgs/firefox-i18n/template

235 lines
8.9 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=58.0
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="
2927ffaed1c67d844e36c61a735508341b4da5ae062e87ef6bb728ea6252c120
56398a4ea260c26c5d1a5722a17e3ae4946a25aca36bc21e7f8146f56078b31f
eb772b7256e31da01472bfef779a47767e9e7ec95a6b577d8e6ec354a759eaa8
754c5c35470b100ce707407c134a3bd2d8a42c0b3da557b4f49f83d415e064e2
1bef07d2815d4964016df69f78c6114ee5f62109cc11021147cb0161b06ca83b
f46615482b9b3a34e2fd11554c3170d8622e6ff7ce95c0c79b5af599f450b4c4
0151c39c10b75a251394dd102a77e0275b7c427ecfdcf6515e66d863246b7d3b
df24d17bed26e712cf6c71219898104b99ff923672dbcb686f90fb638ab353fa
64cceff752fda7766d405361d10748def5e1ff82773e944a6f08691eb6ccb3df
b87404168c03170dc43d423e01ebc7a557f83a8e713e71bf393656ab9b4c6dd2
7d4b4ff1b94684f9dd4e25a323ab78114ada914ef1d159131332ed45152ac806
54ecc3a8ead5ae71615e617114e286daebf6277d7b688bef9c4cccf07d558257
9fb0ff7811fb5d970f47eaea32bb87affebf23da24b0ef1b0470cf00630d6e2c
12582056284c6d0212ba3cd20b71d26775058ede4c2f876fe4600db7ae82a95a
af4d9eb9e9d1197d6461407cf7461a1c1c6598917618be1ee8c958ce1e1687bf
f8ae5c3876c2a4ecadcb1a88760a912652c02a894e43a40140f6eefa4a552e6f
255551e0f07da13f57ac8aa3e6aa81e57f2e9cc5646d9e1d71cfb3be640e5a65
6a19b3654ef1045fa8d3c49e23a49747397b260233159df00aaf4e58dd1cb8c1
215a5aa0947719613a2aeba9f3189b2bc17d123740b48d74548c27043cc5bd7d
de549c997832ee2a6f7305d64a08f8b283c14455df667a6b5a6e30e496cb3072
321b7f69e2db2f794604fa5dd085e4deccec1c67c97e454176bac478142600a2
c969f4e459b719e292fd1674ae90191b0e6b1262c86fcd26d9a96d12673c3abe
fcf9498e7303362fae71ae7848b806503ae598e70ad9c55e5045ced0cff76acf
21ff6c58a514b0b05b137196096f2711105f4b15c27a9dbadeff6ad111e14747
628b4c660141ab9c6056e087c200929d2d850668d7d8b625aee2413be1f70120
fbf852bf97714001e49643856a86f331683b1b87dc52b186eeefa95eb46a3945
301a981d1b576c21f18ea7991108bbf5bc868181a1b0b473f1374e5a1abe621c
c7ab2fe066aecb5984754c99a405c9ea2d3739e534fc3dfb811c7a6cf544ffef
56bcdcd3638ba5a9aaa2af356aae110b8d0a7d8539f1f22ad9d21490cefa251c
acbe50d069b4465737523924e93c6cd8cf74e177734652955cbdaddfac5578f9
5fe6143e1e8fc642c6b5f845b74466523e5c0296ca7db50a233216d711986ef1
35f2cde36f4424665c4bca5df7082d21173d29a11558fccb7e99997c769eca5a
191419293850fee8c149ca525e161ce6fc37104169003db158d7d24a1385082f
68d00d05faeccff23052eec2d1a2d9b8485084a0f1e847630bc04167396ecda9
feecacfbf31bf7993efdca1f60433db3a718ce22579165c2462004738ffdfd14
3cdba94d7f31134f5a4228e1fe81c2b9ae71ac694a51c00d611204c35f18e2d2
c062cb09191d908796c098f405f9dabe6b4990c95ea0d92a1ad54f0403eac7c5
cb352cec2c477f6e74aacbd55e27b71b975ba56b2bfe49c1b9c77dc70cbae1be
96792d343d328d2586b9ba02362ee7c72b4b7683b7396915e38973b1f73a9a79
e52cf21bbc06962868019c132ae7e9f1893dad3f58abf49f38624f3e804620f0
bb67ed994122eb42ebb037b3afeb55e2660e7afdf21a7d471a2c8ef9fdb5d016
12a44ecccb5c11fe58e24dcd23e70527b222d0e92269aaea150e59cf92898a3f
c5bf19090e30ff30f5ab36dbb93fda8c003051cd7efc17d3c84c2ae6496a4361
0797ebeb8bfda35e4fc3e908244e9292ec00b6e9b648b03fa1077e833bb07e7d
b8b1bcda275d19db6393d2c42feae30c231ab5c80b7868fe8ce696625e1b2ce0
dc5d146555ef1d3032e0636dc8c060c13e8cbd2cc235cfab4cb037e41ab3cf22
679aab0a53133815ca2190f84f1258c66830e30a0f0985cb5469196a617f6cfe
9bc516279669509397ca4110cc9cd1f296afb6c5fdc56c4ddad862aba455966d
79cd15ed28fe52e68980a43f3ba7361577ba067750241e65fa9bde2c56eee5d6
c08681d7b81a8723e523bd10eecbce12881c9568883537e1799fd98c9eea8deb
93a1818321deb22721d097ef1d07e7a934bb345da563a140f4a215c4ce1965b3
be27b0b319473d05e123c268fe5a870d06d5d0f70910746d3f017530ce4b652e
f1498eb19efd50ea028459f8d6ed662615812538565bfa926b9954c95321ed30
7f857dfff53577a51673270c12f99511cf7c8178a151107b9b9770c59422ef2a
e9ec76e291103587055186e48ad8c189b48c9c680f860bbcdde6b8d8cd9ebbd7
edafb9e39d01c5bb257c68dbf91315e3dfe0a8d2c31a52cbb0c9a96e9972c652
f5f40c625f666927ec035fb8c119ebe103cf25b438db3223ac858aa2ba509e53
4d35c9c5eed73a23a21b0acc3fc9d56cb438d86eb1f611ca145aca0904a5171f
cdab9353ae0b3fe9d697d6d39fbb960acfa50c311e6cc278ba2a19043e1b79ff
909e3bfa6c849d8212999f5b6b4df745cbaed50ef2f70923cc9b934d39014f92
ae9f9390adb8ea8e9df3a9e805ba5149e65db7ac44ea3a955dde3a2fbab341ec
b10ae273eea89b520a1f96b60279707bf5ca41f1607a8dd0bf23f76db50a8067
baea3818789e68b888797ebe5b1c317b3443d25d453fad41b5f4ad20369a13d5
d1f544fd567985280daa09b9c1cedf5fa848df2db3260ff3d98875a3dff3a09c
6fcfde9562efac654e7b8151e11d3d141b5ea9d5f38dc69e53e741b8a1b5f1ef
d8a309b641915532ce098cee4181d893c747ea58b73171a1967bf77cb3d6add7
4b8c5ce7b80bd4d4a48f5ec98f5fcd28d84f9496353a925a88f07e5781e5f217
9e6fc901b49c666796ff2fd1dd1cbd7d536eebae09ec350f8185aad792741fb3
627ec9b8a42f0d5c8bde791642bb1a3b8aa99d2e0f391176d37a6da6d86ae50f
02b420331fd283f381440edf189fd95d5b0dcbf4970c944c17138908164c3102
627b3dc246f4abccba6096f1931208d90517201c934f6f1c7918d67f85e3ddd1
046511fc3966d0e5ac4e6e1dfe836e212024cec0a43a0ef975583db8cc2ed471
845810f1585a41f4ba1acb70644e1df4899c4c67fea8c1fa9e17ff8b7a0edb9d
1e391e4236a6bd9af4ab7edf6264b861e3adc151c149b70a71b6a471c07a17b3
58fc13c2b8fc8853129062ddfc66c2e807a0a6dbab2be0c203a16b05f6b24798
40a679c02a8d62d2aa267944994e06f4107f46e8033690bb9b88aaac3a32ab33
d03470d5518d1a8929ac1b15bd2bfdc9af5e91447140067e70b3356e53b93b83
bafb94e21c1c48687b7802952a5e1d322b49a272ee15d8e2526bbb5237d98a13
0c2c9b13a844b3658a6e1ee1341da1cbbce03f8de42629ef3e737bc5975441a0
ffce054d93228c124bb346ba5f5fac2149f5d202f11fd3e4e1b3c9c986717364
0b6275f2fca13c105f7857c74a1b67745a4ce0eba648ce30b4aaf86a4b2183da
47e8c7147281fc75c428bf980076d5407dcee6ce4e65c1f6aa59ce3699d7984b
a6dfa6487490cdeb54c45ee63a19530e9e181813795864db9966469a0111b7af
457310083072dbddbc7dd4569abd4ea6602aceb95cc715e1f107f19b48370630
c346fd857bace161a3bc27ce86aef7d59802a2691946b6beac6462d6666473b7
0a5ced6fe21bad735fa003d7c5b9309a61f259b6f5331419a45d5eb1a7175908
628d31deeff3033328d91d8afa8f83f0f612b74dc4ad39d63d7f30be0e9d7761
0f77a1204fc13c2a74e464d767e6a252e8ad8f0b477d668fe028c015677cd23f
12f4c0b33ceb09d2b842844350146dae3f0683fa509cd469196c737dce0c7a81
2b6cf0ae2087227427bb0b2c7a2a0d736d6b64f236e88dc08c94185a1ba015c9
afd216752da3f18f77fb78d8e629e32ccc5730b37ee7e4e88fc194c0168f084a
ddf454d3517a9fd42c164a5d56330bf17e0c039c4c2ac05149f822b1ef4bdbcb
19cca01a1d0f641954e1d4ac305018f6f05add784d3b564ea5f161b156660884
26c3322bb2469310601737d8589687f3cf27b0f06b2dd96041d123ae4f4d658b
"