void-packages/srcpkgs/firefox-i18n/template

233 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=61.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="81376263077a639a0df7dc4f160354043298590782ea7d70c42a789df50f1a32
84340ef11e67bae138d932fdcce967affa5966a0c5ab01f2cc03d6f68298f2aa
7493be648f7def011e18f6c75290c6def9fac3f3ab4950b4b12b588e212f4a77
ea4596b8811ae7e7f59f501cb3227232812bd53f3def103ad2bf549cb79d2abb
4540af01013705c0aea6741a0e213f4874afcb14e34e90a150b19c94e38bfe0a
6d18813b2e05fe16f66f9f0c82a8e08a3a6fa2890be393c80c301110dd81d800
e7c42a5364a722e5f6f2351a038ff8c6d70742da71669019810d5537d36f0e39
0ebf8acad8a81680c135a3c5e2a323cba2207e13edeff400305e492f2c24fe05
4ece264c89c8255c74bf65c6a5d25a44af37609e25cc64217c21179accdeaffc
8357eee0afe8a67521b2273ef931bf216b06aa3b47add5a11534727080b8cbea
dce2996cd26162637f4f9a7a8bca61e8d4b8499175231da3580a482c66b91b4c
338862ca53012668fd5da30e81ae15f4f9255731110ef3c844154b71e3e8931b
da9600f62ef968b429a5d437e48f84308ced217516a3b80949e396b09bd155d5
2afdf45e104400f8c154aeaef8b6099f06fa1ee00cd77353422b8782c80493d5
2dae7c9fbff7b95e02246020518f044c97efdb25264523041fc305bc515dd787
859aeb9a8927fb6dbc5a29a91492989bc5a60204fbc3f8f01ad2009f89d636f9
6769521271903468ecd9065b418646c32cb36b617b4f628bcbd6d6e72081b879
da9c71cc15f0fbbb272500aba824ac485fcde321e969b50e533dd71b2c5f89d6
da95616a965a18506033d090ea51cd5875114523ba66587ea8d9e4ca06182e1a
4522ccd3e85a2a6c8d823ff598c4d2cf1161ad3e51d15fd93b0a5d114eec5b45
b87c388daaac4a811a82ff1e1318f4655e9ba80798ba82c00bc5eb813ace1556
c4dde8f507afcbd75466d1d16049227b5b8889e5713607c728f1ba914b0a808e
ca833b1e4bf09a9876394daa81a49f3b314accd9a0491266beefed7c61479be7
f703ceee50033cbabaad718fbb0740e569e73f61ddc1df6394a458e084864fb2
df73ab6175e45dc0b17b735ce299bcb6702b1b61aa3fdf5f37b59394ef171447
d1724db8da185cad11a8809f3ef77876818eef8ad3231e84018461ef1b874134
d1cf80c4cf7a1acd1f5cdac6ebb9510e23653370bea12e1db6e5c5e60bb41605
a0ab6bc595321debd89c552873d02ffbe52da1e2e23fb0bf9e7ed6c78bf03054
22b801bc0b8a9df2da8db24a631927f1a7811c39fa20d2f8411312c3e302e566
e4475907568d860b7a22c9e5bac2cb0b8eccb554969dc0302999b2bd3ccc51ea
0c4571b60b88b12f61fdc05f14b6f1b8f45b52287cb9eac8ab963562a7d958ef
01facb4effc8c42f898f0e1f76c2ca73e04b4ec506f6837a4572df0195de54fc
cbb3fbd66dd978a48e206b8c346b04ad444f67afb596846295057d21e36282cd
1276c23a9a6f10b7c4aac59c9e491970e195df109a5de36ebc60cf94915e2780
db066b4e73c962aaeb3c8756d30e929d333b1aa67c313c9851e09b841895835e
05cd67ee6422fe7ed089541d90f73a3baf88fa8e9653bf2eb1de4f60d3442112
54438b167939fcf94622f98190d13c8a3fd77aec22cbf087223b434452315e7f
392b336d0494d5e364c31e12042eda32627ef40b77930602de4c1d306a1aa0d3
ce90b2726134c1f4de19e0238dc23b110ad20065f216a33498f282c94657ec12
c21270be60c8300c5975bea228d5941504cc8d81757b5392d11b90c0ca353750
ef4d075fc8b462b1fd7a0aee53432614e521421f52cd0e90cbbe88ea8e39421b
dce20732f2e5dfba243a9bf96c1956c3a0449fd81f4cacc43c350db32fabc96f
1b8d7033480b6c2bffec3ce76c073a85142eca8ee6f9ede547207ca33d8f55a9
a8a99bd1415e01764e4f317701f4e09377276da6db93e10e6e0ed9fb4885a7b1
ed9b9e3792757ef4ff7422e946bc78e84c9a0f1f8e69db03bb242c8c970de163
fd4018acb9730d98d1f3023539b6d00bde237eb9ea303cb311e88775821c8068
4b4f55569b4f0b521365ed18edff1aa6ca06470c4abe5ef93b33956d1d9748de
8cd75a88cb666e0fa816211dfb943b1c3d0bd71f1fae997b6b8e4021f9ebd43b
f2592d68efd9f0ed4b030b326233d777016916be9b9f61f7feaf47f29e58c427
2439855ef019a354d3dd2506a4b26603b622bc35d4fae982906285f4227cd9b2
c62496c7da43cfd521cba7a243baba3b8d8e45515cf1729a8c757168ab37ee26
6beeb507141d9d39a947044dcd7d0ee3e7adb9e1d4a556b0477a16bfa8863d54
c588f1f693a12e51f47ede13dcdb392d1fa8f64f0644848f06b1fd7c6859b1bd
b2baab1a55bc5b3340ae6155deed01448aae08136427fdf210356f27dc42cc97
fd1a3292d73db55c3f8021188c687a6f0a90fef05305f5ad917b55ff0c189be1
d8c0e96648022e617dd8cd21a053bfa45c56ec23cc7ab6fbfdbbfb80a5f1dce0
cc0b42757564e1b80aa46c296d9ad55aac50a730ec66a76c2b9ca7be9e77b3cf
d5b731cf3a145b590d16af59ea08bcc27438adda449df0cf1ac468ea55e1fee3
c823dfbed5d34e1e296b698e66843be873f292db54e8748ce28e36d54bceed49
e01c5cc2770dfbe0b4b0d35dc8ee2062907a0597a94555a7b93e9164f57b9ed7
74bea0ab796797620a6e121513dc2f32114dd23969d57cf3298f10a3f471a0fa
5b1e3a476a683378e6d1af350761435219398c6c9dc7f0bfc52efb6836e6996d
e691c980d0bf89a99e445d7f726e4d5d1242aae16f940405331f8d8d48de42bc
70c37eeddb05e6503fe381118bfb488a1368e18240125e2b947617c8a9d4c108
f18d1a9224486c1952119f882460fbf6d32606c69afcac862c9069a4f9fdfc38
725958f542984c594e783fd151306e8340fbacfd05a7795ae8ce346704a89829
144367fb12f0b92d46854c8b8add994be91069df2f8e05ee1287c1c57f9315be
f313dd641aab012f93f06278f8da94a70cf42b84e8d2a4ba827d663a960f4126
ec35e052f38863addfdca5a4b5a4b25f78f6ac59e9655b03f53b9b9741778a27
e3c0ce3575adcb20ef60d44abb4051e23d560f2994b0a337a9bec0dbb50b9b45
534701f536ce6d665a38152cb9e0209e67383e1cedc71e28e953aa878325b96c
e97e4800c799baf4f176807e2892995c7c684672e660c5277158b1467589a9d6
76afbe14524ca84c6af851fe1567434237cde207f4f3ab138e8078677f00ce9c
7402fa24d7cd719e917e5ff07d88ab955c65960e085440b553c45aa178821e86
3fb1389619e3e0efd2882507434c5683f04abd3aaa54d5f8113240aed3de86bf
365dfa4198bbb355706ab405473a350ec971efaed324049f230cdf631c9c9d39
8c2fbba9144750e55791792c8d17d248ade6a3d6a61c727cfe4f4c69c698102b
7ba7ee23ee35aabf8068024f7198522ac8bf3780720d63444a9fc3f4919754b9
47f6258d2051edfb85e698169ccb646a009eee52c44c7f11240c7f7e68be0c48
2c1cf7d3dd8c8db029d06ec63d3a2d1c58f4747ae2dcdc55d1d44cf2e5f2ebb9
c9fa033ea4bcd3aca38807dc4f52cef7820ebc1e918b30d195491889eb6a4e6c
4ba0eab56da8a68961dfb8d333dc26f6253d8fa9b5ef773f11396a16ba7cad7a
03b2bf62131a59bf6064a9d2190e7d1c14bac55f92e33e48335913acc6cfcd75
6dc7695eed1cdf0e02064560675a30b6e9cca2caad290f7b46d00f3078a99993
72d64bcbc53d2e437c2872f26659c64a82139a7303504b9bdac3ac01ebde1df7
d1a2e661a450680e56bc07a6dc9bf9502558a66b6689cd0841b8fc8ad37fe457
d219719dd56d23e702bb4e6fc589b50f5f18734722b857ebbd44f49b14f2f99f
07a4d63c033e8234e07e29be35ebf3f9ab8ac8e376e7f8882f8e5fd2eb8c9b9d
4b44592b37c40e12dc636af6422d16327697074fcb74cee3e9bd0f631506a3e5
fc8da974458213e019261281def322df32f225f4e3099cad5aff38bdc0e77e27
b38ee1b09a1f539f9e5eb73ba2a01f99fb98b8896d70295bd90b442a78d8a546
e88fea87214959b23a2cb79f2775bb82c8d5d72dd045298ca66b46a698c06e61
3b39e97e9837005e58584101e8048137f2580bd4bcab4688232d75c2f5d9a992
9e3ec5dff511c992c84b6961f77f65428bbe60e6999c4c85aea778eb815984e5"