cask 'libreoffice-language-pack' do
  version '6.1.2'

  language 'af' do
    sha256 '4d64d22807a87c99fe4e529a8f12751f962e1196422d37f3f78357c0a3b04b90'
    'af'
  end

  language 'am' do
    sha256 '4597e91fd588237740fcde9f4c6833717618a2a8eba4fdb7aa41c220ca558399'
    'am'
  end

  language 'ar' do
    sha256 '664edcf63cf96b4ab31c73371d6eae3872aa86f4aece0043d47174483601bb12'
    'ar'
  end

  language 'as' do
    sha256 'e5ce684acc90717657345b868579953cbca544ab0e26e0e4ef50469cb76b85df'
    'as'
  end

  language 'ast' do
    sha256 '9165e3545a250c51aebe29f2a08c9654434fabdac5c37efac6cc5f3572090456'
    'ast'
  end

  language 'be' do
    sha256 '8ca9500ee0ca19453c8550b233b902341c14f62bbecb4263c97f18e7aa995747'
    'be'
  end

  language 'bg' do
    sha256 'd91cb6f30b98d789b977cce119be22ae564b7fe01ab21dfeaa1235b46a1e01ca'
    'bg'
  end

  language 'bn-IN' do
    sha256 '3a52c34f86012ecc73e95151f703d6259f526a71325fe58aacf83fa72ea97bbe'
    'bn-IN'
  end

  language 'bn' do
    sha256 '3f2fed3119261529d8511df2146257e331b76b0eea46c8edbcf79fddd3eae37d'
    'bn'
  end

  language 'bo' do
    sha256 '844806ef0901e159f6f0c906ea352d1889ce72c300aed7caccb44e2c72d3767d'
    'bo'
  end

  language 'br' do
    sha256 '19145b93c8f8c6755ab25744aab14f036838d80bd19278b81b87ccc03e269546'
    'br'
  end

  language 'brx' do
    sha256 '6b7a042cbdb83efc5e6a14b7a9878fefb1e323c889bdd8f5c6fd7683eb6ab732'
    'brx'
  end

  language 'bs' do
    sha256 '74f3accae5de265dfe9b151bfe038d71608330e6d026c01553b7c0a792c2d842'
    'bs'
  end

  language 'ca' do
    sha256 '227202c20c8f5f6406d0eccb4cd2e67519309dd1daa264900b6c24ab597ea94b'
    'ca'
  end

  language 'cs' do
    sha256 '60b868b6241a73fa9788534b6b6d40046d4d63cbe79101eea998f4599c3453d2'
    'cs'
  end

  language 'cy' do
    sha256 'defccc54f5a6eabf880c285a31c5d1907646599f58ac957fc868187614f42fe3'
    'cy'
  end

  language 'da' do
    sha256 '8d3e88761dd743188451d3fe029169059b6a6a8c9ddc7051fd23cf7f582ac018'
    'da'
  end

  language 'de' do
    sha256 '8e7111a5e4bf33c9d5252f4f7b4be13cd66c7be127f9e1f81d329a646c19aa90'
    'de'
  end

  language 'dgo' do
    sha256 'dfe496f0408f6981d5b23e06d9532bbc52a8622ac6d54a00b0953886437f27bb'
    'dgo'
  end

  language 'dz' do
    sha256 '18b026461ac92366f7674f050855b2d8e9c818b1f97f6f212cf07f75f52e54e2'
    'dz'
  end

  language 'el' do
    sha256 '251332bc1a3770fa5483bb3d77ededb85aad540a72682590e82931bd7041430a'
    'el'
  end

  language 'en-GB', default: true do
    sha256 '1fbcdeac8186736c4bc5cbd43cf2332cc0305a3b5a2eb1242ce6a94b036e2f4a'
    'en-GB'
  end

  language 'en-ZA' do
    sha256 '896124e85b6f758d15f7305d3d9dd02062de82dfa8b9f07d693bf13dadd1a618'
    'en-ZA'
  end

  language 'eo' do
    sha256 '53e3714667ef2fd30adb3ed58c2ca19443c346c235e810851bbf33b57709a67c'
    'eo'
  end

  language 'es' do
    sha256 'f27899d98cd4feb6aab7f3cb37458ecf9e292646e4075a3672508e74cc49b6b9'
    'es'
  end

  language 'et' do
    sha256 '440bc22f3810c6614e91a9564f668cb67cc517f96f03c310d706909182621e1a'
    'et'
  end

  language 'eu' do
    sha256 'a6e69a0f057bd7c2783acaddb44b73041e166dae650de905ad5a1511e21f6f3a'
    'eu'
  end

  language 'fa' do
    sha256 '157e8ed4d68f26567b49d909792ea541be09e2b5d05f2cb2df64b1b22b4a43fe'
    'fa'
  end

  language 'fi' do
    sha256 '6de12710c51677b59b99d6c8c50bd10f9f99d34d463cd64116011a338cf1bf77'
    'fi'
  end

  language 'fr' do
    sha256 '10bc39eaf5c51b8c0ae2a4c8208575e421a6042d00b75bb3655ec2323cb487ce'
    'fr'
  end

  language 'ga' do
    sha256 '35d1721831145be8dba8b952bd690e223ee21ab470845d380dc15e59e69c3802'
    'ga'
  end

  language 'gd' do
    sha256 '322fedc06df7021cb1509ac7ce229b17de25a39c47d4b4041a62918522d54f01'
    'gd'
  end

  language 'gl' do
    sha256 'dd9a471c2b7d2591393606aea50bc066167226d2bbe3efda6dcaab25bccf6d07'
    'gl'
  end

  language 'gu' do
    sha256 '90e3fe77a60435b5834ab0ac7086d02c653f7c867d7c6038fd951c11f29eb765'
    'gu'
  end

  language 'gug' do
    sha256 '6468b1d642a53fddb2ddfcb3f65864be0b940c319ff371b11c1f6cda86e0f347'
    'gug'
  end

  language 'he' do
    sha256 '1b7c2821e4a8d79059394b6920c3c77712c8dcf4045129d10b50085a88768031'
    'he'
  end

  language 'hi' do
    sha256 '144bf9e11bd19483b9f46b2fbb33803f3763b51601581fa61b681a7efdcadb26'
    'hi'
  end

  language 'hr' do
    sha256 '8944a1af53594a09ff1448a923dad6c88c57209ad76ae6e27271e6597ff0acf1'
    'hr'
  end

  language 'hsb' do
    sha256 'bbd8c89695bfafcb82f2cd12fe200af7363eb243da95ca80ca71758b4878d957'
    'hsb'
  end

  language 'hu' do
    sha256 'a8fa3eb16600de4521f3b130f4297feefbf735032e2e844ec83a76c6a3d48097'
    'hu'
  end

  language 'id' do
    sha256 'fc89f85e952b65251cc67b13a7ec0a9e0d5242f8edf0dfba3edb2d6b430a6c31'
    'id'
  end

  language 'is' do
    sha256 '180d86daed657506066e7ae46006a4bf6c3873d171f980063152440c39d2f013'
    'is'
  end

  language 'it' do
    sha256 'b5a2b7c724231f9bc24eb69b354f3db908444021e84dc294231e06d3ab38b31f'
    'it'
  end

  language 'ja' do
    sha256 '31d0a22ce391756583b55c2819b71bc2ef6af718455f5508fa641eb011b8a8e9'
    'ja'
  end

  language 'ka' do
    sha256 '9ff800c8615f5db24c72bef45792e53d4d729135be7162ef710f7726bb874dd7'
    'ka'
  end

  language 'kk' do
    sha256 '263de7ef0299cab9d6e703d828573681c837c802fbbae0685e9269d72f6d6ed3'
    'kk'
  end

  language 'km' do
    sha256 '5d8dff1c610e1ac23bc0c59158e4f2c26a3b5c1c6ab0bd482dc7d201c4f83d89'
    'km'
  end

  language 'kmr-Latn' do
    sha256 '9f7535605ba38e3b86876c290f45a3ab159be000f9805edc7912b9eb9805d31c'
    'kmr-Latn'
  end

  language 'kn' do
    sha256 'c481b3160974f1633fe990879b01cab46b8783dd54af760ac4f680a3be1712c7'
    'kn'
  end

  language 'ko' do
    sha256 '0ed0a01bd28361ea7cda9f7e714144984ba06ec0b5d9cec6b29c18df14829885'
    'ko'
  end

  language 'kok' do
    sha256 '31dcba4f002d6f5b3d7530a641706ffa807e088bdd2fd841d9711e8d4dbd956d'
    'kok'
  end

  language 'ks' do
    sha256 '52117eddd34b6b3e6c89208f4077c7c4a50a98a004f4548d7a14e375596daa4e'
    'ks'
  end

  language 'lb' do
    sha256 '626173f1c6c5a50494c380cf4677933c6579be1e357b5f9a917ea144b49312c7'
    'lb'
  end

  language 'lo' do
    sha256 '81b7b1e8aea6e001b585d3acbbb77d0f1aa17181f35df572ae1a5e6f6d59ca17'
    'lo'
  end

  language 'lt' do
    sha256 '73c7afcc6ad4280a2470ae055122d3466f802d68dc23f3d13255ecf786ee7d4d'
    'lt'
  end

  language 'lv' do
    sha256 'df127d41cf803e0caf66ebb4583c0d23e346189d5a6f179120a363352ff08398'
    'lv'
  end

  language 'mai' do
    sha256 '4e30e7e3551fc0cfd2054fdfa50e8b9042e94a84453df6db1ea4b79a3bce8858'
    'mai'
  end

  language 'mk' do
    sha256 '1e8b3274af1e9833cca3f3282cc563df9f562efa71c7cc27d4eab23cf65b4c1f'
    'mk'
  end

  language 'ml' do
    sha256 '1cafa45fb9c273c1b6f94287d4bc10c29e672df4d31a327f42645f6572e63602'
    'ml'
  end

  language 'mn' do
    sha256 '383aa90ce3c3cbf6c40d1d04bde7ed0ec4d21d594d46ffb5cddbab20ce7a096c'
    'mn'
  end

  language 'mni' do
    sha256 '30f6e3ef135f0e025ecf22b6bdc7ad7fee3c6a1f2838a52bafb0faa5b43f5471'
    'mni'
  end

  language 'mr' do
    sha256 '56bfaf1f6abfd0184c8c38991dd20f6a28eec8c74d02788ed88042479c0f84aa'
    'mr'
  end

  language 'my' do
    sha256 'f561fa5a9f138bf03536ca69713b485ab045ccbdfa962b359a96d0c3e6c45217'
    'my'
  end

  language 'nb' do
    sha256 '1c826a26b025035873084eb6eb601a4ea67a12401916e5ce9d6c68d325069f3c'
    'nb'
  end

  language 'ne' do
    sha256 '766823c8bf4e3b05b0bf0bf4da53cb88aad66b80e3fd440c934f1462a9bde078'
    'ne'
  end

  language 'nl' do
    sha256 'd474baa934292b61bfb437fb7d365e002e2f98e31ec222f188e9cb4f4d3c03b2'
    'nl'
  end

  language 'nn' do
    sha256 '4b613a6c67e8a81ed2235007d86c58e57756167d605040d472833dc50000887e'
    'nn'
  end

  language 'nr' do
    sha256 '28af677c56c56fe49bf01f42b2f773f5ed70435e93a07b6fc8bc90d80cdb5702'
    'nr'
  end

  language 'nso' do
    sha256 'cce9b8e0f746c3e2f87e9e7329feef38b992e510f94d1f451a4731d9c1435a99'
    'nso'
  end

  language 'oc' do
    sha256 'cce936773c36f2c5a88004dabf32b873ed3dfcdbd533650c5a08eb5393e63d55'
    'oc'
  end

  language 'om' do
    sha256 '7c3b93f224f4b78b40cbce90965b1909ad8baa4d447b60daee561e69815fee3b'
    'om'
  end

  language 'or' do
    sha256 'bdd06c5eb7d9f98f4197bb590cba14be89c79116d834b8850d2ed4d30a278a99'
    'or'
  end

  language 'pa-IN' do
    sha256 '70e593b2883074e28cf3f921eb4a9abd928c2b529870c86c8b8ae16ab3a7e8e0'
    'pa-IN'
  end

  language 'pl' do
    sha256 '7a3a082c5176e63570f4342000f1ebb25d59843f2ceec847728a821c902ccb2e'
    'pl'
  end

  language 'pt-BR' do
    sha256 '788e1ae2220dac60a9e62efeb2d256c012c4b151275a8a66db163b2aaf8b7252'
    'pt-BR'
  end

  language 'pt' do
    sha256 '4b2e5e4e3ec5f9199f3df61c9fb952ceb34a7fa210b8635c273d9c8dc612b098'
    'pt'
  end

  language 'ro' do
    sha256 '656103ca97c09eba8e7da3903291c012d704326fad4696150e81423405f60e85'
    'ro'
  end

  language 'ru' do
    sha256 '372885fb348e83f66736369779bf9b5be8f2fdd8efea088a6f5c142fe7be6b4c'
    'ru'
  end

  language 'rw' do
    sha256 '3b458a93e5d83a68b6b29cda869de1f2a08fa06526eab5448dfe890e48949dbe'
    'rw'
  end

  language 'sa-IN' do
    sha256 '8d3bd7ce1ba5d68c0c96faf457decc14236f9a3733a0edfebbd476267263b1b9'
    'sa-IN'
  end

  language 'sat' do
    sha256 '03e794eb0232e523d54745b419180214d712103af9a315e1c8918b18fb757caf'
    'sat'
  end

  language 'sd' do
    sha256 '78a13e25b8a1cbc9f1430da5701cb5ba4f7f1c1feabbab2e769d860150e02537'
    'sd'
  end

  language 'si' do
    sha256 '141675f26bbbedf8ca559b250063f1490f3dce474885994cad626717f4c97326'
    'si'
  end

  language 'sid' do
    sha256 '2d019a92c8c7099a2eb81b427f132448ce6007f23272dcabe62c88f81e3477a4'
    'sid'
  end

  language 'sk' do
    sha256 'ff37b53e1c1bbcc9940846344228116c194b5d8d664590d542126a98bccfdc29'
    'sk'
  end

  language 'sl' do
    sha256 '4ee1c7fede0e0a04640cd27419268885a1e853ef06aee338b8016ab9634742f1'
    'sl'
  end

  language 'sq' do
    sha256 'c951bc8bcf066dfa0ccff01877067b9905054b6c61266ecc5711e72462068c33'
    'sq'
  end

  language 'sr-Latn' do
    sha256 'b35fc80262851dc33d763b8977b40d773397e065d9de71d9f04d43d54953734d'
    'sr-Latn'
  end

  language 'sr' do
    sha256 '3df23582a9b5f224ac81ff5eefb996b666dbc73775a20c1c11667c0e5e28eca8'
    'sr'
  end

  language 'ss' do
    sha256 '14fa988c994928160db7de0014614d8d6a912ea98eaab6126aff23edacdf4a69'
    'ss'
  end

  language 'st' do
    sha256 '511581f1829ab5da636dd80ca3d9a31835252436c8eeff22cd4ac2ca532bf754'
    'st'
  end

  language 'sv' do
    sha256 '8777ba411f8e5f5b4a73d26deb99d2dbe9b3b7442ed217b9945fc91160b0fcee'
    'sv'
  end

  language 'sw-TZ' do
    sha256 'e10d397ea41c5d00019c4bfee658bb938cacabb548d5020408c1694de3c754ce'
    'sw-TZ'
  end

  language 'ta' do
    sha256 'be5b4da4eaa4aef96ee61c988e24c44787c18f4b59a971e541ab013aa86f165a'
    'ta'
  end

  language 'te' do
    sha256 '026a2e14b98aa3bbcbda1981fcf015b423236b92b28c503b3b9b16fcb944df78'
    'te'
  end

  language 'tg' do
    sha256 '2a239691ba20238b4648dbc5ec7eda39fa1dd07641348498c09d603da24df0ab'
    'tg'
  end

  language 'th' do
    sha256 'e69ab2248e0fff06f9b12faa0fa079a21c502c308f74a27f628d0093d71f8ea4'
    'th'
  end

  language 'tn' do
    sha256 'e7f3ddd4ca043d52aca95341d7b3667ea6a8c05cff2985d52c0c60c0ca33a062'
    'tn'
  end

  language 'tr' do
    sha256 'c224ba65f8f2c224dab1086f3e4f98b8adf2984ab005d99136d91901ac9ba276'
    'tr'
  end

  language 'ts' do
    sha256 '24379fea1c727471716f949dfa67ca38113de947e65f26618f29c5a305272f6d'
    'ts'
  end

  language 'tt' do
    sha256 'df9dd3dcdf363661e5e7e547198ef732fd41d3bf67aaef32a4c2115c59333ed7'
    'tt'
  end

  language 'ug' do
    sha256 '48140433815a3d8f10d7befa4d54133622dac0f7d2086e3621f6d7c72b75a230'
    'ug'
  end

  language 'uk' do
    sha256 '1a7e72754724bcf689d05202b5ed1c53d29b69bb46be0f7cb26f91981cde03b0'
    'uk'
  end

  language 'uz' do
    sha256 '2d09008052e7a33286d736cfacec328c8881e527dbe0797fa28ce30e43a647bc'
    'uz'
  end

  language 've' do
    sha256 '2712f2eac335c87919341db8bc9d518b554e3c94d89db2cb78a284f63ed8dd3d'
    've'
  end

  language 'vec' do
    sha256 '438ed6bfe8db89d40fe8715560017b2fcf5ab30f589963229003ba36d81c3940'
    'vec'
  end

  language 'vi' do
    sha256 '921d4c6e1577a9e289ab56834d37c1905a0361b955414948b2a9bc50c882b855'
    'vi'
  end

  language 'xh' do
    sha256 '88388f40576ab314036749ef22f417b97ce291b025f6668907377eee5450ec3c'
    'xh'
  end

  language 'zh-CN' do
    sha256 '2ce9a006b867c25683d38d79f8c43da77153a64655c0b31ef2ce967ba79c2365'
    'zh-CN'
  end

  language 'zh-TW' do
    sha256 '4515e2841e68947fc956a2a2bc6b0170c33aac01ae32ed2d5ae500a35f00037f'
    'zh-TW'
  end

  language 'zu' do
    sha256 'c64bc89b2da5a47fa06621076110eded7a7bd9641a64fe1ad705ab62459be806'
    'zu'
  end

  # documentfoundation.org was verified as official when first introduced to the cask
  url "https://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64_langpack_#{language}.dmg"
  appcast 'https://download.documentfoundation.org/libreoffice/stable/'
  name 'LibreOffice Language Pack'
  homepage 'https://www.libreoffice.org/'

  depends_on cask: 'libreoffice'

  stage_only true

  preflight do
    system_command '/usr/bin/tar', args: ['-C', "#{appdir}/LibreOffice.app/", '-xjf', "#{staged_path}/LibreOffice Language Pack.app/Contents/tarball.tar.bz2"]
    system_command '/usr/bin/touch', args: ["#{appdir}/LibreOffice.app/Contents/Resources/extensions"]
  end

  caveats <<~EOS
    #{token} assumes LibreOffice is installed in '#{appdir}'. If it is not, you’ll need to run '#{staged_path}/LibreOffice Language Pack.app' manually.
  EOS
end
