void-packages/srcpkgs/firefox-i18n/template
2016-12-14 16:15:48 +01:00

226 lines
8.7 KiB
Bash

# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=50.1.0
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"'
'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"'
'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="
db54b84c0c15fcaba27e2e124049c3f24efa4367fb6ed97daf34a62ad567ce73
1f90832b46c293e69e798a67895b9aba430b869c0e3184a0d611cb06bcb415da
84a0200f752ae65e0bc08d0cc4a351c69e20d2a513199eb32ace260f078b0266
6d3f8fff35b26a9b5dd86607ab3e504b2796ae5af6e07b6d327901803c1cb94b
4f81c6948c19a3c0c0278d0ee0604b84382e013c84cbd729b8bb534ef8d885a9
81918465211a3d0ce575e7d7ef10735a8b7c45738bdf1e2478720c0e5d633709
0c21e6def5113289295652f67f95ea4a3f5be885d781eaac94a0f0ac05111fd2
65d6fe396efc6b95dd90bc7fff7061d8643c64fa20180796cc98840ecbf07e4d
53623d2bfd9907697b5d7b0e747fb0eecbbea714967c9d36571ac62514a7c6b4
5768972ee398ed19f3eb254d26598ebd327a340d26ac4cb329e2a990f99edab8
18ccacde99791e10583c15976b29feb8520cec616896ec2cef3c667a17819def
166d2077653f00163accb1d56ad56f76528c874dac47f0b6ed9f2df27300eb0c
5d9823adc07551066d342a3652a8861d5194a4f6cf3d5c19aff25e095cbcbf71
bde4ce518973aa378f806f425da45b14fa916e19c9246a53c3655c1b6d7f55c8
d6a08d4a29114d586bed33c899954863d9980d204549956ed7fd11938a3dd56f
72dfa15075f3a37114a143f0b2bb02e0f0f70a35a119776713d673bee92881da
a78071188fa1f9f561c52f970cb0412826db62e67bbcb827ba64aaa23d1c94c0
76dc2bca941cb71e4f2233f91632feeb438cdc82c2c23d06c08e28d300f53552
bcd98186dc9e9f19c56ae926f4177d52bb70f0510b0eeddb518fa217a98ac630
bfb9285909e173591750d69ccbe7249b4daa252c6f28462ab04ccdfc8fe2bcc6
146fc2a2bb1a990aeb794fc81a7e952b0d83a8ac15aeb8b508688264b221b751
3187df8d2c923979e9c67ce7658111094a9f3f1eb15aa8f270b0f76cdbf9d2ba
fae6dd8f778c10cc0a0b6dc4805153cf16a273948794c98dfb8a35dd05ebf1ea
9ab6b4f4fe4df033a95ebb597f97a6ef99517aea895b7df8411a34d72cf9c472
2435e4cb414f2c24cafbf3304530696282bce48cc05e394d60053c0d5277a630
cb71ab12ca44e1bb37d12cc5823068e9ffcf8235e746f72938bd49afd141fc36
8ab50e87e703c5bbc6b8e67a44e660d87cca1227198bb8beb8fd02460eade51a
029956fbed461784de92ec1a0d3fc6ceff52e5ab46158b20369c74f52b254d80
93b072b9658b9dc6c4d88d8b2b9328ee83f9857d29b578531a94bdbfaff8338f
dc5ca066b594e206f0afc598e87129deafcb559363736b7d71f6aa10ad00bd45
eaa622437e55deda535ffe4974a8a09b9567c6a14fc648f1f04e60e9694c0c71
ff8f7077f5eda083624a95405890dc569ea0a9eee12f36b144bfc639715229d4
202821f043547fc43a75ed60de9068b285cb93461e18ec6265829e92a17886cf
9f9c4ea0b9de6a7ae0db1c426d56e3c79c1bfc4087eed78c05db9b083344c7ed
5cd3e02bfae67736c9232c7755c61dd0c6b89824f7b1fa83e5af802e6e87c775
44ddd7d338d386e4adfdf4894d081b3854684280afeb76846f78d5f183e2d505
fddb1d88ed94575c80f8a7bbe9f21dc0fb49e409cc08fbb2ee32bef78e21ae86
33a7c184e2877da1bdf45d5a92b950a4bbc753471f88ea90e7c3585cb2043c32
18c9b30f1de7d04c4675145f05b6e96b18ac0c8f4a26fa7c0ce37f912bc9acb7
2eb03c758f4ade230d611a4f1a965209642429f82d233381bde0a5e2cf43aadb
c1c647eb01b7a7fa71e9fc99750f8a3b23bd5b7d7623d05a175f7eebedb2b5d6
f3734156473a998d51f421b206179a4e78b3fb589e1591a3f85600721bf72876
16e8f425db1d3d08293cc6e92c845c05990e8a89607609362d6371360971a837
b16d41138602b16dc38f669312d04e95b90c249dc6eb7066a421c5bffe43bc28
91e3b5846538e39bbcc314e72adc338297decfa25aeffde8d53eb0c6cbf251a5
6978364271143ab41996efc78f520f3bb687af52267fe01cfb48ec23febb3c26
6a94b0973613dfca2c230713312221d92a3627c7f2128cee4ec81d71b24b416e
d90e4b4ede96c33671e283eb1192038f9dbd7bb2d71d53a2353a3add338e3ea0
3e85b0206e8538b45d4d6548e053e367524d23b336b0be214971531be5cd3c29
37ebf392af8f59e8fd2e241c10d01b61976c52af6909c8a012a40813f2a23647
a1675efea45733c61418a943d8b19db9d5c780a29d81c905618ee06993a87394
020411b4f57db00413cdc648378bf48e6f28b0ff783888b47b9801b31f360363
5f75fba1b2b1094de89b0d050300abbdd8c425718840cab353e01b7515f4cf3a
70ab37759463b4fc11bc78db7c6f1208ddcb711bbefdf1bfae6f1d53c4538b9f
5e5e6631db6d3115578c240016dddb884543ef196647b04d62b0ce1c27c0a38a
8857040d7ad2b7b31bfe1262939e238467fbe0e7fdb9fae3077991b10e847d5d
cd7f0dd21c9316ef4cd028ad213f006b8b065416dac7c25fcf3f70ebf783b96e
499f7870b5436d4d676c5b0237a8e5f3a36dcc7e33e1202e0f756353cf147d64
81b3e68c6b540fdf337fdbcd7a92e813d5d2de67b70696c188b7367dd897eced
ef03c0ce5005e6973e7c6ae52431c9af8493f809999a76d49df21a8844e56608
8ca7aad3bfe7247108b6fefd3eb498e9d20e45bcec74d546cbd77ceee04a9d9d
b349d5ce15844c4a0081396f439f3df9864220c53c89780c94f6ace62c432cce
2150f76796e717f1c5205f75f0486d7b35c318b1d5a5145777286e4631098257
e01046e7f9f3be466e51314faedf31e4f0132f66568f3a1c4017b2b827c91070
e29c868af5d5d218dcf36969e118fc6d8d9889f6562e1fab493b3a0e79b896db
0e62ebc13749cda45cb7c69d5eb68ea5a8e5691559e4d427fc7dc0c949f44be4
3e81619b1ddaa43d21d6cc971965fa675a26181e8f62ed21b18b1791894757d6
085dddc431a6b510e7dc409217e9958adc148c1e19adb47d42fc5579e7b9f120
42dd3339773d32c95a03e9fc5b3816f5433c1c1c3e63aac5e345376f86abaef2
a33ef5db5f8b0cd4d601929d91e8c88b1c6397e9afa155b08eaf20ab78f3953e
c2ddec6e2ed7a1e74fcefa5d0887e99a3015888d54b783d9ed1577cac98b8a4d
0bfd6923f26daed995bf6484a9174add457851177c55b7cc7890df1ab6639084
273e122349d4b003de3de2d0fafbb22e1cf498717f368ffddf1d0993b7b73a87
789e045aec63b3be715b3405369676661c1f3b61aca4089e34d31aa8b659755c
b1e1f3571b16b6094d227bc2ddc55788effbc274918da915f4a17962c97788af
f2c93b899bbfce32102f2eddc35744ee98528384ef1f1a269577e44e0a644c98
19dc731ddd193e207b022607381e68004abc886464d849c50755ea4d31e61df0
1da8f877c0d00333dfdcb21a9115c04f233986ca987ba5739b91ad7877b33d59
041e88f2d34a715225ebc6ec78ae75cbca3c8a97221c1f6a64e3f06fbdc8dde1
7b1ef7b953890ba61c58e57e6149fafea873e39167961831a61599d7be4d39cf
f50f74e78b3d1424aec6396747c66413713bbb82aa26eed37abdfa7b228ca6ec
434425518bba81a965e0771b7c379e32fb0688eb0aeb1302d74823ee5515d9f5
5ede0cec24269fad84f1c8eec17f3da5be59e452f470e13926ddf351fcc5e11b
d6918d086f2e461b50d56f4dec9e98de9f8cd8bb75b84d108eee8020406c2893
f667b82e5893c63a893aa1daede1bbab3468c0cebc35dd64f7f689c85f235b35
ef2a937b6c9015b7b46dc8837aaa4011c83dbeacdfa2a11820d7efe2301e7d5c
22da17f8404fe6a98d58812e85eb70a5c7de898ab0f3f3598b3fc6a0adecc8ed
5fb86b8039a3ec5f5d29887dbbcf6ddd843c6818ea28ce422ac839ac82098b82
5dee657d054ec57f480523ce6ee6b02e63b4173edda319cafc0ed246d9368a52
258db702f1ada9105bcd6b11e8ddf8197246dff9bc18ee2ab0eb9e4b5ea3f6b2
ce6729051516187b63af735a0470a4904183499f03dddd849b314a94d4629bcb"