void-packages/srcpkgs/firefox-i18n/template

233 lines
9.0 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=56.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}"
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="
a78c4900c9dac71ea312d5ceda13987f4f8418ab078374c0e292cd30ce79aa23
e0ea5e99eb7cedd0c3893ae4baa3ca2af7f814bc069dcbf921069dcaba762fc6
18e3c4e6f85fb296bd955b110ba2c6a381ba4ba8de3a0e2990bc4618f9438593
c8dcb494321e5ef34092b7555ec67147461b387803df895c30858314f0509acb
e77f99a72083b49e30f453d1f40ac670e42e6a637b8bb4e7c914f74b24e6b582
e4fe6028af88b67dce678e6a1215cda2c2aa0cbe76eb95947c46e08d93bb23bc
5d9cd26da6e1afe41c9d032054b066a9e0a13f7cfd9701e8126147f405ae6f1a
647318eb3b3060ba2384ecf4b4b96fb70fb54f1428c20f776d8d99f75eed5f49
a844374d3453747f30382acf6019d379596f812f68d49ba7245a18993cea5ffb
caafe8df84189999ed513e4f88e91f8b8c35e8a1d13fa54bd54f3a0654ec1f02
4278938cf3be47f2e7a865a2221c10f383b8c7930f71b2bd0c4ce09c1ff8a3c8
65e8b0a3e55e99701e0ecfb9cdb0775afc0946f23eab34d4ada4f0d973d2076d
fef54b5ba9231eaedbe216c1f9e7c86d831ed032d1fcd6e5dd15a06619ad69ac
11dc866f5f2a16622fa45c36c174150293e123bfd970890e4403ed224d6e4eb6
1ed05bcdb3977850ae21847f70122111ff459cc6669130ec9db5ccf11dde117f
1191121195a77ec1315ec379b307819f1ce6b15bfa1bb9fc31ec0148cb08bcf5
a04d0d37f46b89d2aba85eebc1524daba41b3a6db468e61a924e83b2814d8845
3822d31c6b83317216f5124d603d9a8b8180a06d2407426dd90b71891c155f0c
ee02b96baf96be7e69ff12f06576a270e48ca454cc8f93c51070ebdd9c2a03f7
227588519f2ae092f6cbf0531287c5c36b7037c3355cc0d9e0e024d4e84472e3
ace7c78e28297ea4dcc90a2b8c2881afc812a2416ae4cdba499749349bc2d3f3
55fb37a478f2521b1b1543498d373ade08126c3ac71127bfbde504d8a3f95e16
618f390c9a36aed65860d6ad20444c9c6224471d0a394de92a21262291327ff2
2fa254426d945152e9eb01cc02a8f86415fa5425aefed9825bd1dea9b6d0b76a
f1d9e7acc5bb36a2acfb1659ad0857e5d2c9800836d096f41ceb87977a6e7377
12f34c15fb4cf11e5c007ea19a97f91370a66e192cc3c0aed5405659be36eaa3
5239da279a01681c00ece001d1477abba04b41d50fd442e761140ba93b68870f
98b7422e833226916953ac89201652f406f84c805d293ab949adae475fc03a7c
9516c169b883f8208c996f461221e9bb917e2e56c1f67d01f67026a8f5de3a1b
dff5cbe5b933511fc10c1209dde31c45a521c9e687d909f4915eaf3eac8a3ad3
d47fe44fcab9328102334596678fe89289d8de44cd9018e13e1bcc70823ec6ec
8f25e71eb0ee9ad9e90d9948012713013ee03b6fe1b3837b1d903c5102be0a93
b8416ca244cb8c99744dc3c6daa55d893754ed051ea9731f57b49edc2f0e18f1
1c6ecc0d72a500f5a77a8fdde5e288ce2c578bc1b1de3d1a062e6d7a71765130
3aa8e3e74e35a4e1ca948cb83b42bb9b2c95ec6abdbc8b0872129f6f75d4e2e1
21b16ee4d0a232d6860c9fa6db296544e13e9500796451a98adebcdf35f88c66
4d780a2c0f362742f069842ae2d7ddf3dd8177e66405c9c570ef52b2e7de1f32
9e4e1ffc31853fe3e0d4e9e23cd1ccdf0be1b50182cefc9581b902370a3ae2fc
7dc3615f3eca3bc09472207b8d78644923526dd51651a6a04cf8449bf78cca4b
32d64cb5ceb3a8b53abafd0699d9697f190e137155484fc06968efe3ab2da294
574654d88abc8d620d5d29c09a281738ff463f8a0e09386373005a4c33cd7adf
aa4437d071736c8009ff81f79cf51348fa7ce02d82dd603cc08c00997de79ddc
9faa3d8242f2e13e82334c91018137a23a88374d6d8bcbdbca0bac69b709487d
78ea8859fc47c3fd35055ad7dacd3c89192619f637d1b10a5515db49c1aabd63
7e868a01a8c881319703dd2d40aa7a90a2a6afda350a93cdee785c1cee3e334c
ba7c06ffe790cb31450c47ffc73c0ef402e759e8d6798c284ab3004aa9b1a154
5a78e97fe3b0a106a9839714e2a811d52501e5c427ba9c943bdcbdd2beb303cb
916e89bb2bf8fcd0671a1cfe34944643e3f3bb1aeccf6bc7b86329e1f3261cb3
f424cf833f52cb6a57933e6173bad7a1df2e01b9233feb0abfab0e9f3fd13a78
49e286eecc3e31a2581f728783f25717b994e466a1329f5121efff04d3400ccd
f981b5dd41b2d2479034720d4d8d4ec98b936e5d4b092e954057a3135b802d93
c84ec7d427a84290cc760cf35a900a188621c7c8fbc3b48f63d7c000642eb3c1
e8ffa26d1acef0cfb554eced0b86656c4ac504b5459bb8fd3eb86c5292df7b3e
5c918b32273f6a107c6a8d78be58c9e757884dcc28951949db39bba705c95d37
52c280027d92449fda3cd321a091b2f65f401d417bff7fdce692191b748f99c2
03120c4eb742e750c46f266fceb69cd1a8b97d3cf5bd0f2a55485d25af502272
60171b4d104a456df4a7fc60dc506eaa0ced1a32a216461bbddd2a215200f61b
b0b07f9e4be734145b6472ef506b4cb99c85eea98ece31dad6efa2003d59f893
09302dfb196300ae49c47cf4a9a1ac9ec4df954defa8abd19bdd985852af94b5
9f47b7ef87c55320d6d67a15f61a87b0cc9e891a5aeac382badfe3e3b27b51e4
f16a670648ebdc3b914620d7fbe4f6095952f65c658901ecfcfbbc37645f5fdb
e537b92b6af439a1c1b9e667939f146b7a2ad17eae3d4f9075d1ad70bb958b0f
5714a5481f111e1467a596973c824e9d09cb1e464cc74c332582d5079b495efd
2993e10fa67e526691859805b5bf928be5607d59ceedbbb7aa68962688fa6723
7b4a6353a3b2e6e2fc923dc43191c0bc463aeacc9d9eaadb032f93f00376b6df
9ef461ae9ec46bc6198456411232ed37a0ed68f11d4bc587d2b8b4d8247868d5
ee407654fbfad2523ec72fc921b9072772bacc231636b460ac239c406a43132f
bbba1d13636b0f03868d202893eb995f3112a56ac2453bbdde6b8fb856fe49b1
8120d52f0e9a0ecd870a0ea0d3b887df12b129d3bfda7c83f09e4036907d08e6
325acd5539ec48f65320ff0f5768fbdced82c788750f7c0cd00bf2a264751e32
2e3bcfc268606f1496226ca549df40e9c6b8b9f972cdd7f84d4d5c4b32173294
c6123361207e67bfd6f859c65c369fa0b22561fbb46b548d9b322433f209a712
3a45de0fd1d0b18123e4f97de1de8f57c043a8c621a02f5267643fc5fb12c8bf
b8412464435c2e3c79017bc7ecc6b7b7d7715b1b47d0ca5f6e7c320d2c2b87d1
2054926b1f43459aa857234466b686553555e2afc2e6072ef3883f28b2ebc676
d69ce50c34f429d4a6724b4b8d954bb3f78e5a7fb42302c2e9de9e5f870c4e0e
2339cce445c2c01de77fd89079c121301dfcc082f9f8e3b0f640d0f42a648cac
79c3fa18f421923b48505b74e39cd4fab474685584bb5daf71f41ebd8a388402
0292ae81d9ae0af15489b2b420f3156cb2f7266cd881deaa4c9e164c987271c7
bea8af482218c1bfde800e3461f64d008b46b1419745127fe838a29724098b5f
6f93b52c42355adafc0778516defce16af99a17ee41ec0d25003ab39bfc6dda1
867d12980a8d3ee7ae28faa4f09f63ed405f9ea18b6c0c776da8194ecda937ed
b300ada0279186be68dbf292d41d446828acc71e3dcca94cf88a2ef34b38abc9
0ccdf643e1f62ff1e41ceb3fe9c35191aece0efcbfc6b24293f88f7ef1d55043
0186d38239a9db92394562eb70a6960eeeee052abce62bc3672c8644a37cb859
789359330bdfefb1fc379582b098c040cdb6a46f770e2c80b1695a7eb634db40
abeb0f7ff018d44efbcea4cba5c0c62a78f42f6395ea1535f757f2045064c880
b3798722e3a732e422a1fbff8d1c9ca7716b3fe9b2f21cc219432ec998556e26
6854f076f5ef93e72a4f38f03a8dadc61e3a2f8afa402783bbd00bcc63b6f14f
79092d2f830adbf05cc884aa014fa9348e3449fa206cf91286d5bfb40ebe729c
65633b00c1a124a23bfda2bdb7666ab8e12e113c956930cc975f838e3de04038
af99554dc838c042310acbb0a7c2623d61ff3b3045667cf301cffeb29821c008
f2a1bb04222fbca3845b00694342a74c8d54cbf1a64104d96f1856879aed0abf
8c547d631522048d060be5305c277024e8038386dcad232ed742b1edf14a9471"