void-packages/srcpkgs/firefox-i18n/template
2018-03-27 13:44:29 +02:00

232 lines
9 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=59.0.2
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="d4fd5f94e6463049826f854f66589984854042c997f977049d4f8a990698eb53
faca2b8efbef96c1f8362ba5b7f0b39ed76fce2e77028abfc9c1ecad4fc95ac6
e39ea62741370620936c43c84adc34eb63618108633b2840909ec9365588d76b
732cf91f7e5f8c21798ccf5ed7647afd7a3d64147393da23d6d5df97409685d3
a862f49f7045e8a10411007486401f134c38e3a0fce9f6f3331bf18783f1541c
43cb3a6e8aea1f876722508a6ed1c456fd313c129a93b0d49827d37752b320be
7f09f746bb2afcb8d82c76e3919607b7fc2f8a6c7ac65221134d2b713f610493
0c9d0500a9f85997334283a015528b2a2a3c86dbd604571206a5522d01811802
6ce855064e22750088cd09d61fd3d77cd3a2cd2b286e8603df9d02386dd4985d
860f9e8d7a7c7e8c35acde03a35f9f94182bd4172e0cfebc43d09a5057f54265
11cc8e9eeabb0171125939ff050fe736581df2957fa96fc54ba0f5c5c6f91e12
0d5068e3ac9293da71a2bfc3566e6cbe52273741cc9e82d5514b7334a6ed0e4c
291a4f8e85977a8eb93ab52ae7caa857caf7998f1c561baa534ab8a3958411c6
5cbec24877869340fd52eab4af21acdb0e30a298ad9e9d97b899a5a0223be1c4
935960adb4cd204153f1790397ce3b8793151a6d9b1f5bf38630b7a274b36bfe
266664866deaff544d47ffb90ada91c0d270fb563a1ef67baad86c175d88b606
73ed7ec234a6e197688ec0fd7809d3bf24d6f6f6f8aad9e47bb10bc600d8918b
db17d7492e07c2c825572353a1407242180e0b53d399b48579d5f1e53ec8d11e
4e02cf24936162334435ecf99a9b1abefeebda06b34a75e527c6328502c1fcff
91ef3e6bac7be38155e5f957756f21761bf548a2216e2588721bf59a10792f14
c3457ea19f44ebbd2bcf34403c19d483edee46bdf2fa2de3ad78bb7ee2510f62
4920efb507cfee37e39b705b5bda6b1716eb491274f9df5be505e2a65c4d8fd7
c2b1533bb3c2b75c60662225017795905a2f3f28989d6098bdd7b6757ae3bff7
d3655db524f7eaee1f6c735efe1697bc183776adb85edaaa4b93bfdaf8861924
ca5d2cfd209a5c90521fe4fb014c1d3835b4bf11fd74f9e3c30ec57ada7e4655
9322e35d7dac234c334a9b65347344b4ec47df1bd415d0c715ff310edcae3aea
28b312de9234e3654ef5105777d195c6dcbd58107978407b4ff69ebabc75d4bc
3bf4c6c0de74e5eb1202f5dd6cea420b38b1210289f4d8ed78d54095e9241846
065e7bb9c94c38eb7d18f674a51076c6356e9c201ab647bc8a9f88d6bc24b934
f19a1382ee7616d9c0bad256ec10b7dab3c4b5c2395f6cb306f242eb8ce99eb5
b28fd08c3a6f923e4cd469ecf8ba58e6a323a754733f13144716e31ef86d002e
0cecfc780e5d5fd00e9bdba9b4b23b1c5da34b520636417cd7636a679bbc50f4
74ae886495cc10e62cf64eb6d0a90111e79a90f95fe365402b19c1c0d0dc8a7a
a3a0291633b412eedd3e93e1e6726b74d181203a4c057a8a31db0981f2abd449
17bfbbe27944608489b08a3abfa414cce964eecd03b9c341f29d5f125062298d
61cdf4a594632ad0ae2f4cc224b61c3822b81784f6145f9632461f4f596f4b34
cbfcfb995c91ca794714a881cd12701d01ae3830ff518477c4b1235380052de1
65f578cf7a0c58592d75b7f85c2a3b1c847810ffc623ae3bdc6f8517d8e33c41
9a3e6621a25ba77291bc3e78f539680eb679929d810d8ff51cbb4db21f4622bb
3f44a6af5e7d75e283514e0a73f1a30a2e35865086bcfb4f47a76cc957f8265d
105229e5f047d917f277c13d72ee50e981c92cecd8a342608c15245b28d4d303
a1a5744ce47eaa193278f697a5bf267cccd01777d8e4d7c7433bd7bfe1ddd132
b51b0aac6319414c1a49858f180949a07c999c866c63e619818505727ebca52d
bde5da8ad592142500f36757d3327129a6343dc52fb7c63b4edb1138b290ac80
84354abb5b8d735061284a8357dbf80ad0ab4d49618af82074d6b8cd7990339a
a8c1ceb1fdd231acd78d91a67b79f4a0932842322b76a5cb6e495c8901b83823
afbcfa2bb1f5201a832978eb3ec66ac779107606ee21e7ed21b118887e982a70
083e9ed9646f3dcf558e44b65ddd9fd56bdcf8fe19c35e81de20fb5132854589
091504efc4de1c554bde2d11e4d547deb03355384776594fb794a818c0b09dd5
aa5807fbc05cccb0ff71504b7669908744aa61d8e6080fc8a0ccdec015d43f3e
eb713392349af7ed2383b59463554ee0b2ded2a4f8b5292de5481c056f271bc2
7cc0bfa96e5a2b5203c78a123cf293f9150bf080cb901a97991658047902bacd
f1ba41b49e0ff467b549d406d5554235251d75b91eca0eac193172eeb4a8c5ef
ecddec11fcc909fb2bc520da8b4ffe573fde85a29f25b4c4ea72e15d014ebba3
d70ef8dad857d4f7b99d508495b3f717d6a27d7b2aa96788c51af4d5e875cd7e
7cadd99b0d23cf4f673ef76c0a5beab1ca6a4e9f41b686ca23c752aa2570c794
f7e418dbb3b98023b080814c52bf2bed020b764420084158161c1cc68baab87b
d47c2eb90d25be6fbc4f2880659902713495c7cfdfd31cf3d23166e584061dbd
e6620d3f8b4a8e479d45bf572e3897be1edc0493735fa599c86abfe8d32bdcba
2a549953373041fa8e36ae40ad913cbadd7af5a08555c5c6dc60459aedae2987
6903c60c5eccd3e3ba29315aae1406b48841b9396be3927899d6bce6955546b9
f5e80c52b4474f88460329cf8642287a96c7dd61bd03f70d5acb3cac0e25ec4f
29a1db58dce400dd16fb13cd424bdba0f097d9eee2e2e701f8acc0366bc7e473
a4be8ab4e2417c4056c92146a549afe8665071ba777d4252669c67c9ed6f242b
354f738c0df3f4568c52cd70f4b0c59bea2764fef283a0d552b9d209dbf6c3f4
97ade42f8ec1ac2c698e1777ce10a1c4abadef1e2987a3da4df50c64fe1ba758
9f45d75e5ad7fa288b3794661ba2eeba2eb857c11d6bd200324ee1c2188a5467
65384c5e4d3f36257f6f0793f311be4a50333ec67fff877a1aac01b9c403868f
d583ae5e1ec6dff31adc76bd243db1c05c390adb7e757bb3be823370141d6e81
64bead2c33ccc197348ecdaeae4bc2b16d947e2d17fa3e83fff9eece9fdc3109
504d8e4a3e3c485ab03fce76636de738dd3bd5ab75e5c52bebbe74634972686e
e34d92a38abdd251bf110b64c3c2bbf70ddefdc3d32ef50a6545dd3d8c8022e6
cd0e1e1fb5063fd9a82940506777fd5a9447df36f46f604026b1a4987e65b8e4
ab480af25495f57649c19cf54668bab1e209b60d07654907e13010b26503506a
bd4918a2b0ce184da481fde4d6030991096defd8486a49deec07ccd94dd11990
cd6ff4632e846c0d982faccbda31ee379dc002c16a11e119de1b35543bb9f912
2554a16e953fe70e923778fac94aff135cec1dc83177b8d01c3062a27da3b8d6
5a34546cefac845cb6131382cb04771ae20f18a6eb6c058cab582419cc9324e9
34f7705c36c88f20ba2bcafd09b6ada3c90ae5d71acd4b7747ac60cce70c222c
19d8af678cd2874a37bc5f5836e030d0e04c64de5f3cab994f25dc27c48048ae
f6d897f43b61d7b476cf0bbdfaa9bb09c97e1b923ed93ebaa45796da17d5815a
dd0fa029de2d70ac4982d2ec5d904a8543126198080ae8a45b1037100dfc1454
ff0e506cfde1150867113f1fadf49a075c7b39ec1273254fd1c825c7aa3fc61d
0062281cc43f2b132663a690eaaaac8c483196daed5fc1c8f1de02b59005ad70
12d92d14cdb6aba7228cf634da62ba2ebca3210ed4db9119f4ba2d7c9c8296fc
7026e14f3760b906048d45d25eaa73d0f2a657614eb07ba3a567803b4daf2bfe
226efaa18781edc8c5ffec902c2a00047d3a0796507c9799134a5fe0517b2cc9
a39db56a64511ced3451aac4cb6d6dad6e3d49f7a60e074742b08a492a04580c
f4b96792dbca4b8de74dccce1b51d5c4e6d0cd2509ef2573c1f992f37dd71c32
16f3a699afa42f645c0276b53be27d93f35f21f20289206431be0da811e3fe34
b1abb414442450d836094dcae26268c61608102e31d745b717efdc92e05fd760
7de47e610d82ec7ed7a57d830ef20c4a113770fdc659f19c47c17f4465a9e83b
1e30757d37bb8f13bec733e302e393204bc5f9c9b859465252b25ae053e87b27
5d852b837ce85c5a7bb4a4e95655bba83ca3e428a20b252c023125cc55e538a4"