void-packages/srcpkgs/firefox-i18n/template

239 lines
9.3 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=104.0
revision=1
build_style=meta
short_desc="Firefox language packs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://www.mozilla.org/firefox/"
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ach "Acholi"'
'af "Afrikaans"'
'an "Aragonese"'
'ar "Arabic"'
'ast "Asturian"'
'az "Azerbaijani"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn "Bengali"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'ca-valencia "Catalan (Valencian)"'
'cak "Kaqchikel"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-CA "English (Canada)"'
'en-GB "English (British)"'
'en-US "English (US)"'
'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"'
'ia "Interlingua"'
'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"'
'mk "Macedonian"'
'mr "Marathi"'
'ms "Malay"'
'my "Burmese"'
'nb-NO "Norwegian (Bokmål)"'
'ne-NP "Nepali"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'oc "Occitan"'
'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"'
'tl "Tagalog"'
'tr "Turkish"'
'trs "Triqui"'
'uk "Ukrainian"'
'ur "Urdu"'
'uz "Uzbek"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
# XXX: Remove makedeps later, just for build ordering on the build servers
makedepends="firefox"
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="28c4a4f463763f68eda9e251375677aad44d72d7c667fce97532827dd8dd555f
3676f7cbfe5e15ab4b632447a035717cb5a9b664166f655d5c0a0cafeeb6189b
289f736d954d3c318bca52022c4a05539b70b74d6fd53e1cad57a0346aaefc9a
6216cbd48ca2ab88da15bba1f48a5b42db3226fe5283b73184d44ebef507be93
2a8186384950c3e718176a7a33d1ac27e14d1937869d0b3dea4ebb0373f8d0c4
15065110b91226e79fdd05d977e61cc8e973bef41d9ff2a429c3fe23de426c08
ae841850a061adf244e01e6f7d1f1c2ec67f5925314584e5b3c586e0509fccdc
4d87c184b3a63492ab2d556bd5aa444389626ed6691edcb8613567a3bfe117be
08794f56ad3baa5fc80a13c8e50de2371fb8b386ab9ebeb26351268637dd31ef
4d1bd3ac8594fe42f3a74b04af1c299547884bdacb80c9a0c09d3b5cf62778af
c839ee2d229f61f44105f5b4f54f7adfa3bb71089a3620f668222611e456fb7e
74db16fbe66cc0e9d39318861cf29477d20f77d8260fe1ca0ce166718d74944b
13601e0ae3cf57ad55129f942c3d3d39805364811f7861f6374c08f5f39cacb0
ba8668128a908643b51f17ce8415083f94feedff0a446d50575ae19b76af3325
193dc7fc72517043ce8a9898e15646646ab7a25c8d69bcfd7b0c4b39593ae0c9
590ddbc2e8ab1e817eb852046626c480ffb70d42af2176f22e47530b1de88b91
8fb296231617c39f216989c9001784f1330a4d9abc77039cfa441ff78145eeba
ba14dde13a3a2404164f37c6b613a91961f90a8fefd299650d4f8afda5d3fb32
f045455455cebe4ca8e38b8ec8a18773ededffc1f039e85940d94144f6e097a9
9f35b20e85c3fe582938295ad39d0b5c517f36a469b3835d0f40463ceafe8f96
522d007632474b8bbf535818c7b38478b45deee9e99c3c70f753bd45cc32070e
139b4322570e73f7b2c2153f0cc3f509c939de36a0c900b5f0333ef9b74be192
c4acc839a1bb55272c655d3dc1cd3a3772246eee9818c96e3a300b7fd14330c6
055a6c5009a9e550674f5e4e91249a34b211049c502afe5ae3b53492160d5b6e
92204b1c55b7998315458ca837ee0cd124e0f50ffa535f84b6fb3152c30215fc
78d6a53a60077b7d36ea191a58103f473076529fdfd5652e7fe1e0b9f6b47120
030ac4876d800b3c65e8c095119ea6e265e958b745da7f194c1a877f246680f6
9b2b0eeafb165d5bf2949b3acbc322e2d9e52336e219ae66ee1405fe9ff51310
31634eef443337ee07a5c8bcf8f6c383e4a721b36eb21f0a1d1159563535782e
e40d1f38706d8ff7d022fa0f6594d492bf5eb385a9fdc3fe5a3907764aecd56f
5badf3065eba897d1830b2e80ccd9531655c35981d14cf565345c0f5a6d35fe0
774f56a9f1cc80b233da4daf22cefc2583d6c11d28bec2271ac5ab3a4a4925ee
16cfde878e2d3bb85cec906792b1e53e76e2efdbc73640956514e9c40f02dbe5
807e0f1769d944d11169a36da60d85bd64ff56da6b91f49122c78131cf90f406
8a8fa07c3218552a11d48dfb8a6a1026643cead5fe4bd172790bbaf03689249e
46603cfd9926169725699a8cbb173bda2a75399758861b97afd1df8f7d5b59d1
25915fbf10043c2a7b40807385e951eb23446294774c45deea63e72452ef01f5
17ea2c55f49116db4510f4427a6ec92ced0884ce65c2b4c1c5af9d015d4476d1
203ed3e7acd68b76528fa62d1670fa771457519bca12804275e2c6565ff1c460
b5555879af449535442cbb81b01c155d502fa2e12ce052dc78ceaad9d0dee635
58dc7b73a2cf22c3095ebf99e89a3dc51677c6aed0d0a6d9b85c9e3d187c2352
4be5cd694c48b93673622ac6f0c59824dbcec5042ee66b1d0e89d49c5cd49dbc
e209beb29b262465e845b1f38bf23a2fc65af356d29816bfdbc5b5a3d4cbcba3
936eafe625d32051efb20244850c5116972afc544620a3c33d2d151b4442d5c8
2bae04718b2b9fa1c8233ee59d90e8d1b18123fa0f8e01faac8d9f94dac7d60c
6c07be1b338367bfdb9a928f7ab093247c2ea1104a8b4259658a6e0131b8412e
a0ced4537f73cfcb9413b1d013587ba17f620affa138abe1204c552f8b1099da
7cafa415c221b0e9c08e52780b23d4da849e25addd7205c5416fe533f2de1b31
d504bbb1a1570abdc6b479d52ac1b41afb58ddc57fa038b9f4c9462116a7730f
b804fd92d110a62189eed511c62bb665c91c526be7f13321d358eb5f36674726
93bf000ffa85de98f78ba8c8c5ac7514be6cedacd87e7fa1d10f8d86923b3314
7349593f3837c982bae546b905eef350ebf0e0274407744e4084291f9730828e
82ee500147d99891985ff9ba8c1563d194d2736b2efaea82c73c0a8cd499c9ad
a96aeaa5f22478d47519e7db26f720a47fd534d98413536a615dac6ce358daa8
d0681253933a56c0a094fca3cfbfe7b8a257c2c5185cea25c066193b15766795
4c6e654d99eed7e3e58284f974cf9b04958dbe6154674f70eb6dbaef2adda1aa
75db480f706c984838faf6f4a94a9cf2292c97e7ef2d005e7dfa7e87a175972a
a956de4d1894419ea1f12bc4d4b1eae0724763a29e6a29ec712e527efc1b2211
f1171f214b33b6081b6f61e9301df292fd983173da75645a69ecb56d0090716f
949f0140ae41118f7fbef8dcec11af051cf4d3ac25d65f4a568681d2517ce7a6
416f3590cb9cc97da9026b42125782d4267ff835c02c18dbb40541fe281f41d6
15c0f69ade9de3fd05a381690147778cbee34088b67c90141206b98643422cdc
43eff51a68ebb8f9a0505cfddf72d272acab9a218df63dab71ea11646ae9f055
7d719675b10ad992345df1910c4459d97b6e95dee4b77b12bc33ff6fe2e4413f
bb93bd2019557ad4d40953d72bec8761fe9329d7c90abf58161f5d1730bb69e5
d60ef8c275ca62165a975148d52bcc3a05ee0ef5fe53de954f540117e2397122
07b0ffb0990cc5cf9110746cad70f5b4f3efe08d94af4de882d71de9a382f21d
cc6246f49f8eadc7e22f7b5e60b21f660e39a22973e59007683c114475957dd4
771582f45d7418595b6cefc36ad6efeefd1454535a85ea230971813fe16f301d
89473bb826ef3cd74b3cdd369bb17641169bb45d5e3c0259bd6f8ea2c2f28b3b
83eefb78c864d2c4c90e4a5b84c146ded01bb1b4dd4acbfc4a3d5ca75b8feba4
a9f83bf7b2fbe87f2b99cc5a729fa817d326c56e7363352fbc90d89d8212cc46
3941d11fe0f127703f8e235690eddb4a43a17921f34bdc5c9bba046f822aa770
51823a48d453d3ae6af662f07a464259406614aaa343b6210bb4d1c18dc906da
690be435460bc32987391e6fc60a2e55404bd463de05cdd5ecb409067e20f6c4
6eb8d28368a6ed4904a0a997463442241fbf44a5085a2e5510ca7c4c7ee9390a
39c2a6d8fe0cbe5bbf7bd170034e1ef4b3b6445e4b4bc98b4213e0820ed3c7c1
52ac4bdefc0a1c18f44b3dc1371c03c676320583596f9dfa62b5c2990961713e
2ba5715e933430d89bffe8b4df1c61999e736b6f6c3c4f73f5e4d37cd06632e7
7b002917f3cff42fef2fbe64c2694c79988278aac58feefa6635f7ede26eb85d
1eb3d5e08cc38208bb277bd7f7e27627de070f550f06da41fa8cac9da9ec0da5
caf8baf9cf4b8a892c5f15195965bd695853110680e0c72ac83b3e1804527561
337f3a693bed0e7359bde5a3365ff0fc6991b404a5fe1b2bbc2caba4e7cf44c3
2a0b9b6febccc2c7157895f4fd404e3c9b6f97ebaf3e4cd0c32523bba7c762f4
0e2cc417b5f87ed9beff382f6a2210b4da94527aff0f94e599e689a96ba60a32
12bd72d91885ee67b8fb83302e8fca6a0068a9ca79b8931621193782ee0874b5
b4022b09a569276df5064d3d984564ac78bc6048867da48121a665b14c7ce83d
3657a362fafcd8b80e6138c227fbfde027174c97a3af36a37bea4b038c865606
22479abf947e2ed205c6d10b33612f737f55b14e06663da3c6ebd1cb28cd9367
08eaf9e7ce70214a6ef56f65178f2efdccf1816b00858270e928dfcc30ccf7f2
71bbdd9c18ebd0957b0aa04574f437980c176d2b0f46f45978bb7dfe05b18ad8
c68fd85aad4bd2eba4167e745875b78b1f67637b36f0b78a7a8f60b976153b8c
23f628bf0ffdf12d859e70d90b1ea077b9b6782c5f4edc7f4349cf28ac2f3e20
62ca1eda6b2a385164e2600cf89a16d1f278c10eabae2db750166a93825d3a57
a3d0acafe9b9caab0cdbaf0d37b1a0577561e573398d9c993578d20a0f926a0a
34f9092fd5ffd9232bd132afd1c96ecd66c80bc348c5beb8cf41e01365507875"