void-packages/srcpkgs/firefox-i18n/template

233 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=63.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="a69e98b2480da786f412f44028d9066491186a9ebf8d1d0e4ed33869c44a1d83
d43e7ee53e3e3aa585e53b2db42a4ed3bc358fdb9bd265e1d2b47baf7b3a9398
f3add5fdc9daae03c18a29aa0e5dc5ae584ccba12102fec68e45c29a0eb484b8
bd51fb9a473da43f51d99377ad8ab6823dfe3034ca736ee54b2fd228378ecd1c
7976beb3686d0208104e0cd837c7d35e1a384d948c6350f525b7225c167f3b97
a321c4595f866173bd4ab636a849b5fac9558ea2668081151e7197007f057178
6f7e39ac4c4905f75578f5133770916c6e4ad888b304261c1722da9a73f4018c
db439229c94d61a28002705a971287f865b9cfaa28089baf0f935ab1dd896c99
0d1db6696eafe92d75a03b1298f750f0a69f0496484491cbe15107ea016b5f47
23113a55a258040467be0d60ceb38600b165969bd319380dbcee13d7510920de
ba7e5a2022b7fe7391e47c5319e4eb0678a477e5573b4f6eecfd6260797d9d9e
b245cb6e8868b1e0c77005b74083772c13f61b84cd968233eb41fceba05d61d2
46d6937c29b1946c12c514f18f4460140994087e8163c92b82405e673f6897a1
26a94dcf8a6c95dccf6f788784a5a99d41a5970c343956cc9ca825cd90df5d5c
271f15f5a06b982ffb4d16f5609ce67301f2b7e8d76db41a87e29df75e7f0138
25b63e1bff3e36a7f17b71c05ec03d7dedc9775325936e9ac19c30226eb45878
b2e0130b6c2cc45c62c108633c9185126edfa7381bb954312a20b2f3a343d4d0
0ba63df1c715944ddea493282587266acf24c1b721a76d679ef37f0252b43fb3
b6b089a88ee788e684e87368d542024c5398e431ecd182b2271906bca5549593
061ea25bcec87edb0a551458df540ba4ab6cbb9fb4470a934d30bfd94a42bf11
a149896c0e77c7fe082ae91e4d287bb8898f57df956bcc09986e144cc69be21b
14163a81d51138a06d760c582b76126007f3ebc06436983e9628b03471bfb006
dc6759bec52d1c370b5c31912f0a05b1508c450b900f913fbfab310b488d1d0e
ed6a0cf39b1f5d8a56874079f96c12159b89a83252afca56d77acc783d8c7c7d
02db1f348d44799c86c176b894c8c7b88709e174777a9886c43542aefd59c69b
2cd376f06150875d257b43f6996acc13a1ffb4a5b7b8110e9b64bc7a9fb00cd8
3bcfa60faf4a0dd772a123a6763f88968f2ffa5fc6cb49147dbef875a8e26b45
8de17ed09a99ff891254e77e87a1a50f4d4c0f1ee662137337e2ab6803310bc5
4ebb349374fab6929d84c970430e3aed1bfc4daba182bd0caa6b32252cba3084
7cd41fd6686fa58d4f8545168dbf3c9763845824a72834c316f500aea88787e4
aa9a585e3e39c5d962b143db588f6b70604bf75dfdad5f5b56bc1fe10e26435a
b2a079b24c3c2d5c533ce955b8d7ecf42ac495712cd1a9095f80c5342b5d540d
95cca64459bff725f813a138a9f6f6c6a0aa9f96b031369f77eae69fc928056c
0554c8541e59728670907d2f7f4ee0748fdc32fecacb572fc45a3fab329e39f3
d1af3f796be2d3e055b3c405a78e73556eec8b04576fe50ffba3856ee4f7538a
af5ccd80813b2322ac098ca32f7651cf8a4f07453eb49a8782ec6fe3d7a2efe9
1ae5656d1f6aa8dc1e4b3ed26839e45144d983421b0c265e07c77a7dcd22662c
22751ad7308aedbfc0ed47d31f85b3779508c0b1da5862fd3e6a6fd6b895ee3e
3c01a5d680659b44d1bce70fa3e327f18523f50591b3ea00febe05b9f2d86f42
52d7baf9f862e46ac21812740b180701277879e22e85a3d9a90192846c1d3d45
350464c32817b3c6783ed678d932fe6bab565399ce2d40d2d20f7418f0b22c35
1b7f2bf099958ffb8eecbf12b6398e3b89171df0d9aed422cf389f200a66a449
c69c85c370ab9899fa29e56c1ccda238f4e1179208525b4e80616cc347eacf0e
5ba54566294d2a0b370ac58bcef41d149b87caf2e28056328ecf420f215abd54
426fe28f8ff6df8407e4a48a9a77c248637fcfb68e38cd73e9ecb0347e7f6303
e8336fb6f9049d9febc9f9cfb8803adc937c1f9621f8679c9bb911b3dbdd24cb
5cbb4fb78f61ea88908a8384982094393491ad75a7e468cd82c121a8f1c6f116
e7148242a2503c18fb5868c52c0bacb10bb4fe4b386d6b6195c86113f4c5ab04
d9065fc2b849f86779313622b2d5c714ee65318a7f5829a95d4c254aede4ac2b
b499d73ad829e60faecad492d10c7ccd3af7ba386aeadd0777e9fa22c586d934
cdf1a2b83718a4fb68a18fe99dd388f02670f3658556a0f61ebc88a0db7c32f1
de6256998bfc4abe95f5eae7398875d681fb6c83173d991b9cbd8354edbd9ed4
f71eb16cdd5bb983fdfbed956f573399f966a85bba7d69ccebd31e4231413eb7
42206775623375d7db880e2728895ed2b4525400dd622909bdb410cbec54c4db
9d0ec0b215c43e355e72e1b65b76d59716d7aae06dfcd2fb8ecdbd288a0878e2
07bfdb38665a09ca8c1c3afdf741391cfe44a9277934aeb676c43a244c124f46
dbca2a53b4cd2e1f3e94532ef358e4044cfc60b350d46e58f146979b902e0f7e
37fbefc91cb215eeee131ef3f5dd8a33c608af7209c364521d8afa0d0e54064e
3679a669bb8a3935dfa49efdf0819e38f2e79c93c02d52ddaadcfb0dcdc5a459
c5e3a13ed57e3e924b89b6c25f21b78df7a05a18d84203baffb52c13111285bd
551363ed61e2dfb066623b152c670f399a49337fdf929b7c91a91492b21a5004
1deba0e0f817b1a83971dc16f996b3e7302ebf3b69c4c78f2477432928ba07cc
2f47f51ac59b240df89b5918b056f5f277865832793d430e50b0e86f16eee9d1
7de54cd97ebe1f7fb19688b487df1559abb39c2b0b8a3cb8445edac3cfcebf5d
e272fcb3d762388c2f101f4848d16bd711076729c49201f046581f797cb1c7a0
85100b8664000a46c4dbc808490798b38c0eab477b7aa3648edd0150f6ae84d8
b08bda2c5a4591e46b87cb35e18a5dfdb88cbee699e635be5e76281dd78656b8
e49ddf7be8fb8a0b32115232eafff247d26958eec45eb2195bad3158f191cdf8
8b993b416fe591f57615472ea364b6af95382834e1483f763e6e228be242971e
1b447c5681dcf06fc9870a2381c0953c753c03c9659947902596c663959c5b65
1101d192d4bc567f01e3c5bb3b63aaf773c16f74ef073550eba26aa68edb7638
b5c7b6845448842180b3ea15aba922af434cbeea0dd3910b911aa19e41daf65d
1d4ba9430633aa32968a2a4f383f887b1db9cb109b24660261a9fa0618d94995
4ad7dd84703169e355cc238c4c0dccf2b975ee2120ef1550691bd005848cc08a
92395fb384a1a58738cbd6fbc0db7d5974679f0b00386e9d24f4e25b5650ef56
4e799db3a5f6b8f79751350e776985d9731c842f6422f45511d81fba18dfe94f
3074eb8e58daf6230539bf6f67bb165e87913e436311cc0f88a8eb9b4f682327
4f2cc5b1380ecb71a7cb4047714b3038858891ac9fc7a964fb3947846cb1cb8d
203e22e920fc56b83670684760fefbbad9f8213689c5779dadf5b632e1265f23
11ae17d8b93576d8903e7367fc9db202ff90ec538031032adb9d7b559f06b070
3a417697edad6beed0f4936eaf671446974c710170b638c778df06c620b88a5b
01baac2afed251b5ccc88af790060c31857dbefe267566a08d7a26b0326e2bd0
ace8ddf31e4515001508eaec46227794eba71fa793eb31220f7e71e9e3252a6d
d56b23466243b795faba71b6ddebae522ceadd84c99310b07d02bd974b855d3e
0539b820ec979161c114986ee351fa28c172c40df5928ddda537cea2e8742495
1c86c62f137535fd87d055ba6618c11e05cdba186032bdf533839e778f4e3a0b
48f81b87e8dabf6fee1d8559ef29d219212505bafc30ebeb937d01dc3f1d04ad
0a583a3c6f43d9db6c6915dc4abfaf0a78e6a3d5ca1dc7b9301d5f89c8973386
a6ba79767f24623303a8c703398ab62a11073152b9b90c4d0a6ff19933cad0cd
ed6b734780c8ba7cda38e56b118012d940fba95a759fe68b00de339d96e9a1c4
e637173435efc2174a0801db45834317e78d0899c5a99dd42a648c7963b893a4
ead4173f344b7e8971c3f28f45ba87e1779dab8ad8e48bda120fee8e23b3da17
c6ae07e75a383152916ba09bcd3539d5f2ad022105c362904e9ca5196ee0a5ac
a379d849c067f33dd703669861d71a7e38400d4393ef6f5e5cab4815e6182cc5"