void-packages/srcpkgs/firefox-i18n/template

233 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=65.0
revision=1
build_style=meta
homepage="https://www.mozilla.org/firefox/"
short_desc="Firefox language packs"
maintainer="Juan RP <xtraeme@voidlinux.org>"
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="f3e9eac9caac851c7b6aa778f4dfb044197a318e1b84e51857d5d06378689c71
eace6fef42d4e02c47112e12f90176ef7f64fbe420b5d18da7ebd568c21bd88d
e636d6bf57ee998ef75ada0a3e795a403aa1cb35a04817359959086f88c99d86
17ccf379eb29c2100cb6ebae9c9c73a4e37f46f367917a1cd210664112e61c02
779514a797096edc3284bf03a85b5180820e087bb646067eaf173c2f662163ba
8f68f32d7766991d82c715ee9d4d75ff40a3b5c95b83e5353b759c579786a7bd
aa11435e5062314f3461a0ddcb5888ebbdbd75b3d55bc450a839b94064f07bf1
53085fae0b89f26a75c2f2f7efe7668628d2c9a7b5f20ef15d66cb69d488178f
16b83953f8a1138a1b97da527f9473671c3a86ce0e3861d54e1d34eb143c8068
62178c95acd6a2e917213a2357383aabf44b51153db813c71edbc7d940265e82
a815247a1b8606d187f516837ec28062ad2ee55a999d09751bdb81b35cdfcd82
9df39954a4d0db91d29e6cad3765be6cc2c3a9e76b7844142e8e4e9f1b7b6f04
f155a1c8b52f7b1e1c84bec847824598f9e5c978ac49da9f5c7a8a3910f8c47a
178c9671de9b13114790e2290445aad73a6753a3419603a957153914abbf4c15
5acd532be02856fc9a41cc9d034f37a10af6b803b827c4e42a47b0495358fe7d
21289e4f4eec8783d912fd5bd17e75e050ca86fd937266a4c3b29b67d6c3b091
6234c49dafff7117819eb9cc396ed73ebf633fa76748f10f92ef2334ce642a71
054d95d4e09c80018bb7618a1bb46f898908b24486f04c40647b4347c6f6c7bd
df159102386c8ca8e1f4a58348f36af7c6f9499cc279595f34e440009adc96eb
15519bc72ee5b50d90a64ee423b27cd0a71322fb9b9b7b20e3f22145b955fc23
8a5811657703afeab8569f393eab4240264fdedd008aba4d941b1637869f1590
1c4e16443640db97093fb64b47071de0e3fc4e119e767ba9a91098b968173c2b
24a0f236afd73b98eee515dbb3866cbee199f607fb1776c0a2921453f5e5902e
513c0bb419c3be41a444fd093ad7328b9e3c567f5c17c0485005c6e962f6fadb
a1244194a7bcb8b0ac9600c2207833c1e1df38357104c82f2aa1e95827ee804c
c92f033867b4c87ae34ebf4f98b14ccb753e03fdbf7cf5eb01e8c9d6029a6a2d
f4a6c1e56ca8f93dc8652ce4a9d847c20706dd9c703edd5a917c2824bff02cda
d71b183cef7013bd7ed509743f9f928fe33c997981714347443ce1f1d275fbf3
0d4cd61f3eea812db1260ce1910345ab8e70ecb631dc1a8651ea20551dba361b
2b62e18726d599f03755f82ef92e4447e611b41cde02fc3876b16ec38d347f35
77257717689104d8c120858634681c2f400f457246ecad0b4e495d869fcbdc49
617a409bd0e6a78036c302f1a4e90b65905771b32ff10a4590fac2c0a1c6d818
83dca77b09a3e11e73a439791e4c7d9ce148b110bb813f237aaea1d9a9656da9
422a35e1026edc7beda095674db9400f398a124fb1216e52671d0c73c01437ff
54de836f425ef099ffbd5c05c00a6a98fa7c18506343a96f9639080d3dfe647b
2be029a057d0f9a6d6cb538ffcbd3177ce4db9056c1876fdab1c026b24795212
6f9c68c95045fec3db6db2b0a253318d911c09551b5f76f22a8edd01f9eb3acb
eb5eff657d0620d67e0101c2f6fac08c404ba939ecfe1ac7a7f2f2a3f24e00ce
d3864c5f842d121736e02edc9430d244c87925fbdcd2dc35966aecd46ac705e0
8505059bd327a325db11662895f76f534c633344a0ec7f834854361e7b60770b
d619791e0ca9137c8965ab94228d23de45aee1afcc79e82dad1f1104bbbfa48b
d183570d4a565f9b6d33c0851c97b0f3bf86011258961fdd8f8c5035efd86dc8
f2b67b48585e4cb86584c6f2f069d21c5a9c37772542e9fd0dc0999e4b7a7169
d3c3baf83d8f1cb54ed7f8053ba756c741d91d0a2978d1a6829b1cfe8fe27426
1f6cb73c2a97a020afdbc49ad5fcbbec55c70ae6b8d02715a4fa3e550575a6a4
e01144fbd1f583a5520926d6f8e5deb4579ef03c4eadc9d32e91d8f7d8a6bf00
30f0281837622d56a52616383a93b5958b2ee8c3881ab5b4d95a2e210905d3b1
139bdd0f05f54810daa3349dfc5203d5c9b15fb4a28ae72fee0f2e2bb97fb665
7b15ded59193a36cef203895e0b8f86b2ec0099ad140bca629a8465c0f1d55d7
c6dafe16cfff71b6d8236d91ca715d1015b51adc2888a0cc3a44aaedbd76a894
6690741fc071d0b01570611a898f819334ae4ba9e3407513897602699ab2105a
aee82bb16d6252a72ef25d8834c5a6f8eb82fc5ed6b0ebb78fe3f94e511b38ea
3231f100ea25b3cc5618adfacc3f13b9f383654ffc3702c3c0ce6db93c0d344e
1d7c50626974a47e1931f65a94e03dd713103c1ab09ed30ab83110b5d6560a5f
27d20795c2522e1d9d5a21ee59c31349a3514d3e832b26c1e024331b75aa170c
75d7195074c205c10a0a6c89419163b18ae30d133cea519df59b6b868cd1733e
0b5c2d95e1f61835f942f712613750e89e0e607ff465d420e5d4ef2fa222ee14
2539aab832d7be893c79f56eff189577d6466db19f85de6a80378eb1d2c935ad
d54561bfc11cec9b0fd4bf9f3ded2a4abfa2e5761b63704a6d996ae4554b5d38
e69c9f1e9dda984cf00cbc1d226ecccf2b1ea04af9cfe7962081e5d1ebfc8c16
dad3fa900eaac56a1dce3598b605e302357b4e7b2b494cf9c2ca22e1ed6efc5b
cb3231cd193eb4e7b6444699a691e384f97f852ef56c1cc37a7ff87665b58411
f834afe8060d8213c8337d6880f5632bc38a6925334f98712b3ab488bb02eaf1
c8220c5426965afa5f8342a91400e811dbe1b312c132ed80b6c0fde4e0c6b1c0
7fa815af784b6c485685bc39a590696e8096ac4d3bef28011d80a71a618ca583
2ba4ee10582d399cae5b7c4e6564429eae1f36712b5990bead3c7d8a3e7dc61f
aa9ec734ddda5116039fceee3433e8a20e65b5a3dfec3c9bcc18b1e1db60ba5d
286fde23208850692edbeeca926d836d6d5b1a29fe11d2d730663b971e498060
dbe77855b5566981b1affa5830ca022ebf888158e84dc65ddd5c9c1b42103069
0da8033fdc85a061bbd2d8400ca240950d8b6af7150d32322b15531e66e521f4
60adb5f2c8ca4bc03da59beaf750d098a20f0ef23175acbe7e3cfb6e99c4150e
0310310dd904e7a2066ff997fc5186f42289f2e59686d97d6c168af2457d0935
a870ee0e91b96ff1ee8d2c15b6f14fa100243b20d4e1c5a6c5845142278e1e23
f908929d8a9aeb81f16609f0961584e62512e2ad50c9ae490f517f87eddbc09d
7f9abb1f7ef1357ce0af22b1996b95fc656c73ec3b9ea2175bbab985ea28630d
9dfd26824cdb804068815aa5959290bda31def3ac1be46ce9a335ff4e8b43715
dd1dbc873f6022b66d2d6330419f76c1e354c30fd66b47dc1501f4173daec0f0
2c7daa59347cfeec6346637c7c2deb9b51367a4250c7272f5dfe098c35a22d1e
a6b5af1e79c0252bef9aaed5e7a1403112b4a9f7e218343e8681b9b257f055a0
d6412c883ea9f512bc2f5b1f4923837d339577903e1a9e8886cc14d2a133afef
2c29bd7df7da01412e9b6a02c7a8538e26c3a43d20780308e27dffec5a6882fd
174e22eea67a1fc62018baebe6b1145641b7aca3517996ca7b8156c1e52e19aa
6eebe3873fe89c6b74e06c3629e59ef2bf32b755889f7e43ac718c09a3d55087
a74c087cf5619aad8808d9ff46f96eb96c8e9971ce4c18f66d91befb05f0701c
04747c1032ce8e27bebcbbb75cf6192cd45c78a1002d8c8e31bbb2fa7b41a999
d09bd777b7af2fa33016d8319a4667693ca6ec7841a3f7fa65c9573f0296c499
d3d3b8e265ed18aac59e07ef1b28d53544c3c74eadd64fa49ba9d816019791d3
b9a1649d44d270f1ea75425e0a240ed3a6a9c93c48d574095b2d99e4d84e9e3c
feacbc7d10c635701dfb6864adc5c72ac98c4c493f5dbe126f27aa56000696c3
7cebbbfb3b203ce0da6d4872846df4687955afbae742ae14eb9cbe8c974eba1e
de35632b65856af4a2a87d529b835b2748303e907412241e03df0cba1f83918a
c9a60df8dbf4b11e8cfe06cd720cd652117d17050454583daf721624288f7f8c
8b477d44eb17f9c1ee3afed8a06f7b2642b3e177a7f59b03cc4d6bd0f9d8ea62
e01b44db4deb9b2637bc70d4c444679a7cfd9b6e40dc9eb87c696a76b17a8e13"