# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
# Contributor: Michal Hybner <dta081@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgbase=firefox-i18n
pkgver=135.0.1
pkgrel=1
pkgdesc="Language pack for Firefox"
url="https://www.mozilla.org/firefox/"
arch=(any)
license=(MPL-2.0)
_url=https://archive.mozilla.org/pub/firefox/releases/$pkgver
source=(
"firefox-$pkgver-SHA512SUMS::$_url/SHA512SUMS"
"firefox-$pkgver-SHA512SUMS.asc::$_url/SHA512SUMS.asc"
)
validpgpkeys=(
# Mozilla Software Releases <release@mozilla.com>
# https://blog.mozilla.org/security/2023/05/11/updated-gpg-key-for-signing-firefox-releases/
14F26682D0916CDD81E37B6D61B7B526D98F0353
)
_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 "Maya Kaqchikel"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-CA "English (Canadian)"'
'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"'
'fur "Friulian"'
'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 (India)"'
'pl "Polish"'
'pt-BR "Portuguese (Brazilian)"'
'pt-PT "Portuguese (Portugal)"'
'rm "Romansh"'
'ro "Romanian"'
'ru "Russian"'
'sat "Santali"'
'sc "Sardinian"'
'sco "Scots"'
'si "Sinhala"'
'sk "Slovak"'
'skr "Saraiki"'
'sl "Slovenian"'
'son "Songhai"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'szl "Silesian"'
'ta "Tamil"'
'te "Telugu"'
'tg "Tajik"'
'th "Thai"'
'tl "Tagalog"'
'tr "Turkish"'
'trs "Chicahuaxtla Triqui"'
'uk "Ukrainian"'
'ur "Urdu"'
'uz "Uzbek"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
)
pkgname=()
noextract=()
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=firefox-i18n-${_locale,,}
_pkg=firefox-i18n-$pkgver-$_locale.xpi
pkgname+=($_pkgname)
source+=("$_pkg::$_url/linux-x86_64/xpi/$_locale.xpi")
noextract+=($_pkg)
eval "package_$_pkgname() {
_package $_lang
}"
done
prepare() {
sed -n "s| linux-x86_64/xpi/| firefox-i18n-$pkgver-|p" \
firefox-$pkgver-SHA512SUMS | sha512sum -c -
}
_package() {
pkgdesc="$2 language pack for Firefox"
depends=("firefox>=$pkgver")
install -Dm644 firefox-i18n-$pkgver-$1.xpi \
"$pkgdir/usr/lib/firefox/browser/extensions/langpack-$1@firefox.mozilla.org.xpi"
}
sha256sums=('8602526a30d551276e22d2af6d9c39e3c47145800932d42c956296e5499bfbe1'
'SKIP'
'faa076fbba855a0de3a097876af3afa4a95066ed7743ccacef8f016ce1075be1'
'bdea5ae8b2df98853f3346f2ff3ac03cbb6ae7cbeac8808198161f4fcf3695db'
'55a2e3201c846005c4d1be427737a17b8853aa0dff150ed27b746cd4ea03fef2'
'48d3c56a3ead667a7b4e31789c5944244201e790ca69af384dfc1af291e60b9b'
'f9233c86f7a711d4aaee83af5b284846af67c7165f99fe121a5497254c161cdc'
'd736db60e86081b7dfac7685bb6550fcd7d4d822ff619f0d3d53ec2c9a032e0a'
'a8846e8f89433ce773818c5ca9d8557773946ba1825a506c1b3b13e530c63b0e'
'a2055b448d3ee5da975d1bd877a07048e57b7c2cbd1f82921428aff9b4980c8d'
'85c5d1c2cb5e14f800271557381e3994f7faa5517e0243eea72ad8cf135757c9'
'b1f34ac3b8c253f7b842a374480212a8ef5663be53a4ab580b11be9f5d840b3f'
'5fa75e135435b15717ba4d106a41bb61e5bac29e7b66edb50a4d4a770b8bd623'
'cefb24b77a840efbb2123b5230c345abf2b1014a757dbadc4c853a8772429cc3'
'47c9916f99e3d91111c64a49f49a0566d241a6019425f2556d47257df23ef027'
'd08868539620ebbd7217502ed1397d460e627667ec0e1fdf742a7db123cae020'
'3fc62047c7637cce876d23296afbfc1acc59ba7293458b7d0b443b8161f6b88c'
'c2452481a10fe1c76494d2232b56d7d9074492d70d65892748ebc3512f820ead'
'2e433cb5a36be02b55d777f52660ca167b5d35e1cabc1a7f86e2c77ee4dd7ff4'
'64090934bdc5d108447f07ac1ecde9ee93d9e2a8c98b00ec7c4bb387d83af019'
'7322a5492728e77ab7c89f504eceb3e18f403023557e01dd22ff15aa6c1ef484'
'4a1d85a263f0df3ddd61eb0b435bdbf6170648a276f55e28dfda2dc0e2876dd1'
'5d7cb70276fd1f2f43f3092d4041c5a4ab64672daacf19320cac7d447a0ec776'
'745532c569452eb3c694c63c45e9d2b6a138013b5dbd5911e29d4c5cbe9fe452'
'f5160100f83a9b6f38d22bafa17c1c12f14123673db65c9100e501d9c0ae02ce'
'237c494e872cd3edaef5f826621b94fec59c56b86b02916794a85d448a917624'
'099cf4f2eecffb78fab05bbe62d35da8bff4da618463398bc6c000a0b956d39e'
'38cefe4e97a3aefcb7dd67e759e44e0ed1486c98aec5d3209397927f0253ec06'
'e85be97f3c3f1d8c4f85d36a63eab51fa393e50a962daa252da08e5a771b9adb'
'a7bb2f44f92383735a170d637d89033a607a2b70e6c01b40083be11c9af251d1'
'b02071fa9a79ae6a3ae47f212f68986eab413c128ffca5d0ad1244f7f83fb367'
'b23a3ca8467674bd12f6e754370fe616bc1509dc0ca6b2f5b3d8655f63fa42cd'
'd514d27d09f76cbf786fecadee5cb0831393437e53385a650b4cf0f406d99550'
'a130f0d6b069479f3074b8dc9df13974881dc3aab6052cd5c439e551d885a8c9'
'578da1adbcbc98d8983d4d707570c3297e33b7206c03bcc8596150e7af18b66a'
'a5e100572cbaaee5f1e5d5dbc75988ef2d8eb06d0fec7e3a7697e75c411e4475'
'c133e45c99801c40163a9d44d9b8a66b292aa6cb7f93a3f74306b87e2c51efb7'
'e9a36f3ab2556bdb97a0310f73000aa1a68dee7f70358eb4c780606b86af6b52'
'6b0ffb74dc6e8ba2751e041b0635022eda66616d74bf70e62c13bb5e1df0a890'
'1ba1cde1a23991a95f1c56c4558b847bf578c24ca468118eff7ea3ed1c7379bb'
'3d31c7633ffc6200e43cbc32125172356369592ab02fbee176c657ff06173ecd'
'59df49c9ebbd200d01d99cb001a7fd5c95f00812b95a3e4f7110d306d756e8c4'
'375edf81e23e7edb11adfc985b01398d5eda84f12f714ebe6c7f1cf68fe456b8'
'd5cfeb6bffdbe34a15999c5c748b2d412a5602866209e927ac2157817c324873'
'a67b39740c3f3a1c23d25de308c4f673ce3f85733213781bd30117b4b34884df'
'b03b94133a0a9f398f139446a3f7c0ffbe47cdf371fcae5069e0903ef96c960e'
'b4ed02625c30b35d1da78f2a3617eace6b1b582804944048bd263114a9229290'
'fae13957aed563f750f7b85aafc2e0a7e12eb02c62aa30867dfe600bf7d64543'
'2c6401581aff5274fac566fcae7eca8aec1f6e5fa36fcce2a1147f546852c3e3'
'ee31a9479b3efc5d295d7965bcbde704cd3c60516fb27a202e7c8454270f4b9b'
'e6b8d9b3761276cd9e905e7b1dfa0b5942229fa001c77eaa03900ad3d495f1c7'
'0930541481bc9c1b550af95b71a271a91ffaf7193e12e7d3734f8dd366a4ce46'
'1f7e71364eedb79dc0ff75b85e1f126d1e67134eeffc1cf35cb3fe2b0e0c4bf0'
'd879a6633177228de4e84ae8b827116a0851f5686ae6ba71dd45ebb8ff905ffb'
'ee8f02d2b481b671f40cf20ddabcce5daab52962544f3288503a43e87b40a713'
'ed44a4893ef2902a1fa5e4b6f80f73f47d0a3f697ec86a8dc878acb9a510c00e'
'0ed1474492c35ca681a9ee49bf8f29223e78ce06ae36b4723117fbc9463fa73b'
'faeaa9569ed1d50e3083e27fa5bee7f297c9ec42e2adef55b718abf398e07fd6'
'8d5309905474e24d581f5fc100b0a9773dbfd4505ec88bb60f547051b20d5834'
'773f46c49fb05107f1da9f38fbba11718465947dc0c635dd534bc1bf02554e49'
'9127468e3ff1506313af5e8d579030ffdafa9ebd245f84367125b84b533c2187'
'da86d98eef17ac4f219822e76d7a7fb998e1d4bfabf63304f73047b310b82724'
'7721e17a57ac67704cf4373d134198114844afd573ce363229222917cea46250'
'b600a31b0fc3e07cd420965347bbff63e479951b81a9151f9e1ce4f4d90b7350'
'e5a887187e9c2b5de1279783328eb8ffa387de358d8552961ef86edea7296b9e'
'82d94982560d4fa4b4a5d83325c48b727d26412bedb2cca8da482cbd3e15c33e'
'809b7961018445e580e856bff056c15d2c31812b5f82bf1da600ef78d1b96708'
'd0f4f9a0a401b2f06d22132f76ce0e76deea43ef5b8e27183f3714099a496632'
'2a57da6b165dea7f849adc47b5c8760c484f2bfb3580471ac567e17d87f0494e'
'6a819eaf5254863934c116d1f0442372bcc5d7bc3f25057d3b827d3dd27f9181'
'98abf74721e9ee3a872315037e34c64315b0095a2a97ed799cdfdc5858e35cde'
'e16d63af7dad5b5065c1c6e1bb0d0f1973e740e03d69f3a4e980ce40e8ee3db9'
'8d174b7a11131a2ea59c0b979d58ad0fa0e0afe53e477d57467d7016c061ef74'
'82cd9cb8087e2bc3d56c39395513424fed6e45fc09d8ed6ba42abcd3498bc0b0'
'a483ee8592c24a685e80ff0de877ffbb09a03d440fe56cc170bf0cbd0af605ac'
'4818148523b2f26eda088fa724440b75be5b9644a97c47677a3e57fcccdc513e'
'4382d2ffc4d05e7f12df8b5bc3ac0b30c04be7ac430a725004273cd4cdf08bfe'
'0ccf0d67b4eb4388f7167a7848e1d61e7cc5b82e031876f29784768b90374d1e'
'9dd48c9b78e91e4ddd8d4cae8ad055d559a8aad2d2132d99d14e0c2f35224255'
'3f12094e875a34b3419c9b7e2fe417365c32460029b42399eb8821929612c370'
'0bffd6c6355d5a7d6701564d91adb8e4818503f56d815f5f620adfcfe1975b3b'
'416348dd8174cd5090b1b2cdc5179113dde09b75abd4530f45b5909ba46a4182'
'291f402ad1ef9a435b7cf5f3c63647eb2350b0c5a2e3d7157900af7a29550100'
'0ded47f072717e978c095d8e2b66cc098ecd47c1ae46b92b1efabda2fb16319b'
'ef709891a937f2fc00c7fa508c6042f1f04ca9da1afb568b2e323beed5787bab'
'7a943149cc6b600e7766c2e8f6fd51bd620fb4f5cf343b36acf3a99838c12fba'
'f45e2ca7230a65ed4d817af2bbbb4aee6a55eccf5ed631bef5b349510097f61e'
'dd7d492522dc641f8160fc8a165df90e5122e7170ff2616dc9f7900fe266c292'
'f17572b250a18958efd6829e57f9482daaaf340cfcc34d8a02507db6b1fb8e3b'
'6a682e0444b48727fe0bef4144e3106167108422391efc26a0205dad5dd04aee'
'44740d7702fbe80b1630db9b36c769971df4005482fd0e6eb444fa1d1067dc17'
'e39e9128f13f868518b60617b43d800ddce586036379b2e834407a87ffa94eae'
'27391ab8545f4a09c46ced3c0b45b5f60ce7f72c7cb2ae323a6ccc275d745b2e'
'eb42ca03c8af63437467d46142b059e18a2a571bfd522919ea34634f1d52673d'
'a7b0dbbf61c05e4d75cda34ed3ef771881811e3be53a204c0f717d2892eeea8f'
'4ee045ac6d2b1f1e797162f6a98bf3d470c167d575bc5a61ae74f02972f69aa9'
'2fe7826ad1b4188a503af49d7a25ba357e5f6624ed99b135b1002d48346e7586'
'05ac2e0dd419448ad4f1e9cef3951397e8a615faede9688e08deaddd8278744b'
'2991214d5f176873b6be340aa276f74ef277f30aa4a3bc845ad0ec4c03f69e26'
'da249569ffb7f7e0db96a0127780358b832cf3d963161a959c8fb2e1bb40e8bc'
'2973f6b387b50a8f3e0261313ba861e7ff685b059517c4f45de3380978f4f216'
'3685b3830a5cdff672cc0f2250c394a9f02cd319668f0fc0d2b30fc745c72015'
'f94242d3a746e8e075cffd8fcd556f5eb48a50833387f045f49243e0956b59b3'
'ab1f29ca33318d1c0473c3966d2c5188be857b1e30c3c2fa712551096875f7b0'
'fe58133269a591d2cb42bfcbbd42866df2f797490cb0236958f5def1d246a343')