void-packages/srcpkgs/firefox-i18n/template

220 lines
8.3 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=43.0.3
revision=1
build_style=meta
homepage="http://www.mozilla.com/"
short_desc="Firefox language packs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2.1"
noarch=yes
create_wrksrc=yes
do_extract() {
:
}
_languages=(
'ach "Acholi"'
'af "Afrikaans"'
'an "Aragonese"'
'ar "Arabic"'
'as "Assamese"'
'ast "Asturian"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'bn-IN "Bengali (India)"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'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"'
'gu-IN "Gujarati"'
'he "Hebrew"'
'hi-IN "Hindi (India)"'
'hr "Croatian"'
'hsb "Upper Sorbian"'
'hu "Hungarian"'
'hy-AM "Armenian"'
'id "Indonesian"'
'is "Icelandic"'
'it "Italian"'
'ja "Japanese"'
'kk "Kazakh"'
'km "Khmer"'
'kn "Kannada"'
'ko "Korean"'
'lij "Ligurian"'
'lt "Lithuanian"'
'lv "Latvian"'
'mai "Maithili"'
'mk "Macedonian"'
'ml "Malayalam"'
'mr "Marathi"'
'ms "Malay"'
'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"'
'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"
noarch=yes
pkg_install() {
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/${_lang}.xpi 644 \
usr/lib/firefox/browser/extensions langpack-${_lang}@firefox.mozilla.org.xpi
}
}
checksum="
5143a7cdd9243695f64db4288c8e4b8dda5732bd20d5e9d4651016e13bb95d58
7d21f67d3b7cecafd406d1aada00efec98b51f3b984f59491926d3cd49657c56
4588545c42bbf9e2c8cab715bd45ee60fdb30e58862562bb829b0ab20883968d
cc789a29d6fa1eefac014519968d26e4ecc95175f095739641141298ecd958dd
f98110cfa9564f200fbfacf244a18c1be50602adae848648cdfe052d496f6f04
4cfd3a347f2ad7051436011fbe29e44f1546450535b4dfe40f07d0876d1d368a
fc167d8f12e668f486aa01b8f5376171c4465ef4b20b8be743a1f051f071789d
874045bd5a6bf8248b9c6ba62b712190c9c171915796eece3250c373b77eef03
f78b8ae019873d295770780d0254033a7f0829670f931012be5cec946918621f
bb4ac58e1b2a33477db6b44c1c26f8e9309b94f59436dd88308c2e0369b3267f
0916f7b4e21a7e1ba57358883f10196e9ce39ab622a61e2f4c1fb94796fac87e
1cd64ba3b75b7b3e1e9f8d1dfa9a84cf67ad7ef5e312626d0e048ca5f2bb84c3
6b266ba2f3799994622d666d0e77c95d47150c1db53155552369e53dad3f82a0
4412b79943edaa1902b292f564a648d1fe880530d2b2a03bd55c34a1ba0e3882
95fb6a01556c97636ebd754fc2f06597d677c50e963f55aac3039228ee29aaf4
39794ef4165e9ca3eab7413b1545b9e1e96c39c503e67170200c2c476a776091
b1f734919f6c2271f9f81983e5eb9cd0e85146a5e6931f38f084a605388159cd
d0677dd4ab1baf22f45d20696b3c4f8af0b5c62981e6146eec2f673b24558d6c
7eb8c0b5dac1b147782961f6b1e8592eb914f0af7c4dafc5e2753e7653bead17
e5f4b3fdfaa0192c3a2c440127eb93e6bbf8d63f88eaa2389117f7fb4d6a69e2
aff3c5017d640bdf09533261e20275eb910f7021205f95b195ab4fb65be0b7d3
b717abf1170509b2db672cfa775bd41ba94de16e291a8fa87898006f37bfb0f4
82b8739a9745c10872792c80d2ecd6441f4ec7cfe7a0e10c6fbca187cda8792e
677534acfcf999e8d731192438f8225ee71c73ab3c7eef95d5b4d3f2f1a4831c
d2e8808c5e732fb626f30b85069dbe0163466e941232a963ce96760e455f4792
f01b0ec955cdff2bcf7623de2612ea34d9e472308bc62d6acf581ca20ab81c68
9bf3275e29a112484cd2be079153228d2913acb55d102a11ff80e5aa948272b5
40e44aff6272b3a9fea0f9f01e3b4da408ff08d1c75adc56a59df009317d3ee9
fd4c493405c3539f88f07456b41f5c15fb8d3e5c29b913654ba04d81ded79283
6a58a66a06f9633701bbf083a3ee7fbb69f4801cc99bc8b92cc7300e055db15e
ca70e27e3ef49b9ca2832ea381ce90831029f5f47e9a08dae73c6dc3d7c7c006
0baf1ea9947febd84c02b35c2c96e0c364ba40390754e7bf467cdb55785cc6d0
80be3038dadeb3ff2e825f2abf06e728da69651358468fe423ffa2729a9ed2a8
d123063fea8b5faf65cb3359869d5b8962143c4cd96120b3ddeb22438b28e32e
628e2b8fd05e423bafa191fb35edf6edaa70a8bb1d966cda95d913d0087af653
279f104d8dc3643146893fa970bb456d0a71b8272755f1b407b4ebc70f1621f5
b534a34454e80b9b2ba9ec468d399909c1066ccbe8aa4921de819d7a3f21bb0c
836bb18046f7b80cd9620edeb48effd6fb578f17123b0db886c80c541715a19a
a773c716bbca540c4db6ca1d3aef51741d702a3b803be5ecaed39cd0a22b0908
12718da68aa24c96ccfa680e5b9e4a734b9d02f4a52331c9782a6a78f76e1666
3e35608440981cf1abf19688d0bfc996fce716c000c4fdea289df6c09d363df3
382f8a910c574aef5485f4063d83398c9c19f10d59cb0f8c99ba3a6ea5fd8825
6370ba053f783fe1aec5088ac12d3b17bd55c68442242786599777dec5c58e19
915a93cefea2d8963491552fb9a617d3fb756d095fe4dbffba517aaa6c9b3e06
c7d73398a3c5af5f2f987303bd9275434d99bd3fe32df63fc731bc249202ef0f
04cb2f6ea7b749fffb6ff2375f456c809180a64c2712e8f28ee5ae5ca9fe4145
c67c7d66b732fdcae5db2463b272b796e449832b0d886b0528de6741259647e5
dabfdd5c3220c3bed528ca48dd8b546642ddcc0c57cd4e16ea907eaed59784ed
7052bd6ed591683b1f7c71c21542757c7d6596d575de98951abb721c5d091b54
a728251af4c8a3303d16d44fd853f364bbac52627a792ac715265e765536f447
bacd19e897b98ded3505979f8a720ee65c444df0d217e943825daf07e060140f
5feb07eaa32efe9f796fb5dbc4e0282f2c5d5b51882afa09f6f57ac6adeeb558
5fd8768347700ad23755094a2a753fec8d75d358a3c64aaecb2a2317e1fe500a
5469223688d81ebcf1a68e68899aa3c81876219dab57a5b8b5876e0bfe041c52
af60084c2c6f0ccb1500a08e5232f16c0f5b90d34b83eed72186ef7c6c759809
9d3b3645e412b8ebca3acfee68657bf40a758b81203719f216a7c82b8709a8f6
f9cdc42f0a9c5e91d7147ca5528e468217804a1e77905ae68c0eb77d757e86b2
d53b0a34be8c4c02a39535b396f702af958987071cf8ec9b13eb3aefcb780f1f
7f161da08b0860cdf65ad8aca8a07cfe8e1ef67a6d864d347d39513f9a9c1531
98217f7eb1be0503fa1cfad51dec52383efaf2bcab592f95c0beef6f2d952fdd
9787336b7c0db11f9038c6f5d8525fe51d9ceef0a8039cae84ea39beba372802
302189cc5f7d6f2bc352d86d2057130dc139264c24ee0f7d517c075c0cae08bf
930abf71a2cf04b8da155f3b98da09b0f7996b53c8d6369fb14bbd5828e470bd
ff4071f0b778ba24a9864b797fce8e66f62b1e1c5dc76e29e8626a3a8e69ee7b
8882afb4a8b5f68109fd2087d300a97c78a7b0117d18f2f2942a5ccb8219007b
fed79a4c26f3135ef63f66113a04bb834d0a6012c3815a34533842935c4ae17b
63a67adf4cb8fe314a860a294f52b50cd525b9c244dd32ad9d947191e320fefa
1103fca20fe8cbf9a4a57ef5f6dabeac90d7cce122fddb922853018874c51811
282930373bd05848cf7ed52599356b993f08bc94bd40000cae179d13b69b9480
c825f6aa735bc35e9b9a2515c5036043b39d3e934371199c47a35f28434930e0
27a7e7f0236167f27fc96a4a73ed0c4085a3166728769e4dbe7d116ac3048cbd
31b021b458533954bdee1b5cccdaeb66e18089678d77e7af151b3fb4ca260647
a50bfdfe25874918baa5332ab3e08d2986f1dc4704b494e8dd80be3f3468f293
81aa3883107aafc65759a05d9baf3e9ef5de7e1f0e0fdbc8f14d607eb8f99a45
a5981eb087585d3d17b1574c90f0f6c6ce244c56597562394293f0fc786036cb
7b46ba42d8fd170aea736bff7348aac662d6b723ff5c16895850d777ad916f56
77e204a48b29226296469152bee9b603fca7fb96696832b715122c53d3088535
564f2767b4b33e3d62a65666488b8d5cb649f9e12f900a0ca53b577bbf16eb7e
11ca12227d9ad7a782047756a2260c0287647b5b7fd6a44ad43e323839053725
ef69ed03ea5d58c2452624d0662a7e96427a39cbf72fe94c338970fcb4bc1b63
dd59ff9cf74825038d040dc624340a3faf5572cc95845b647342d8dd52cea6b3
70214e508b881deffa3d4b90abdc61f8d22dbdbeb53d42c81c8d3c281adb5920
bf20b9d85497574e587494b2e43d8e81c897bfda39c30ae9d10b7d3d7c80fd7b
366f809cd956546b764d6bbaf6acf35ad70056ceb76ec8e94936c8e60fbe5d03
bd9b067281609e9969d307ea132aa3cecf13f5ee787954846301fe8c08571c84
79744dfee12121f8b6f092527ae76b15e90eb2f582ea3ec39558a615bf59e4e3
"