cask "thunderbird" do
  version "153.0.2"

  language "af" do
    sha256 "7cb0f62aca1017626867f592ce32f57a1edfc938ccde8c61d7e93e452229945b"
    "af"
  end
  language "ar" do
    sha256 "e0345f9eb33c68bba1f6051dc3d3b0104ea5ffe01780994e6d7b95502f6013ce"
    "ar"
  end
  language "be" do
    sha256 "2b063f30a9238915f5ccb3a57abff58250b98f7a30f7bde093631765d60852e0"
    "be"
  end
  language "bg" do
    sha256 "466a6aa90e84640c29c2854071c9d2c0c19d3dbe3c72d9608c9733b70db6c368"
    "bg"
  end
  language "ca" do
    sha256 "a9c5b26070d25e28235c39d9a17a7c3af46e32e863f5e39b6371dc13ab642411"
    "ca"
  end
  language "cs" do
    sha256 "7ba69e6013bce7a97ecabb8fa4831d458ce11a721d7126c8541e7c1a2b82e975"
    "cs"
  end
  language "cy" do
    sha256 "da73f7cc58d6aed71f2f1281d7611cabe78bb877e4d3b089c0b86fef0bb4a024"
    "cy"
  end
  language "da" do
    sha256 "56f982dc7754ad96c0acb10f62f690e46f6138662ddcd4b726f00d752fd8e32d"
    "da"
  end
  language "de" do
    sha256 "20c27751d6c4676062dd4c0d404be03a4dacdfa1511c3ec2e55d46c743d8980d"
    "de"
  end
  language "el" do
    sha256 "461f706a8d801ba2499e7a51430669456e3791b6b8f3294333d3bce39ead10fe"
    "el"
  end
  language "en-CA" do
    sha256 "8aef6598bb660195a8f2f926ed04ebfd34fea98f3fea0ab8b595e9fbbcfe459f"
    "en-CA"
  end
  language "en-GB" do
    sha256 "cfe15110ff90088cf9793475437f5d019e302062b17c0b69b4aa6f2a1ec57876"
    "en-GB"
  end
  language "en", default: true do
    sha256 "8e5e46242201a843070872e371acfb7467be34b48c982691b779a52bdc80b775"
    "en-US"
  end
  language "es-ES" do
    sha256 "4196e4d266d6d1676d379d542b7da779cd3e6845b3fa56ee93928cca44c467f9"
    "es-ES"
  end
  language "es-MX" do
    sha256 "6bc71af623a9837290664ff426caee9a30ee6293b69783ca319cda80ef7393eb"
    "es-MX"
  end
  language "et" do
    sha256 "a01ba22ceeb7f6ff7a9adaa89be4cfea526c28eabdcb2395d8600743419534d1"
    "et"
  end
  language "fi" do
    sha256 "0a7f33ea3e078c66a37a3c28ae461bc1f7bbaa56ea32fa17fee849693a32fed7"
    "fi"
  end
  language "fr" do
    sha256 "e5e58708dd7d45da88e4eeb09809eddf12e1a4a32ae48b51c3c5311fae32bd44"
    "fr"
  end
  language "fy" do
    sha256 "f339d2a8f7eda6680db47e0c4fdac28c25284f3c536214297ec2da42a58eb1b4"
    "fy-NL"
  end
  language "ga" do
    sha256 "ce6c1b2d4f4b9415d5d79c21d43f3d155109495aaacb95de8e842a07535ba55a"
    "ga-IE"
  end
  language "gd" do
    sha256 "796249d06049f24a468db63abbf28d0a54e41c81b5c1f32d40e08c74b4568310"
    "gd"
  end
  language "gl" do
    sha256 "059c904a020a82bfbb9f3a41e3fef4b879ca93836e6489c150a7f68518e9568a"
    "gl"
  end
  language "he" do
    sha256 "b8f7494b2395e54a79206ed980886e71be4dfa0f5055e41f3dd1d3e9559bfbef"
    "he"
  end
  language "hr" do
    sha256 "52552eab86117442d8411aefe682fcceef39dbd1ad5576aad4b0f7634c8df663"
    "hr"
  end
  language "hu" do
    sha256 "684383388d1a1a1d8c77d5c4e32b9cffc164e3214ae6f6d7fdff83a4303ed25c"
    "hu"
  end
  language "hy" do
    sha256 "ad0eaa6c4240e2fcf760a1bfb42f3c16723dd6ffd3738875fa394415a8fb891d"
    "hy-AM"
  end
  language "is" do
    sha256 "c83eedb255a12f8ad9a1eeaf7420437dbfef838b844ce0b880a51e92c3bbc135"
    "is"
  end
  language "it" do
    sha256 "005eeb672ee3ed56899bf2f839da3d9010b5eae533ce6b35519e1a00965f8616"
    "it"
  end
  language "ja" do
    sha256 "35f435328b05fb1118b00fdc5a519051fd9e7f9afbd5a96e89304cef1bdd79ad"
    "ja-JP-mac"
  end
  language "ka" do
    sha256 "eaa0872bce52aa0e1cd51bf610f58a768fb0256e44e5f65dc7543da4b31c04c7"
    "ka"
  end
  language "ko" do
    sha256 "6c110e96d54246e656b1abe615d45cfcc62b2cc0edde025cc17704a01d9ed95b"
    "ko"
  end
  language "lt" do
    sha256 "c82e9753839473619ca4a8ae3d9d37f455956047b5a6624cb92c452fc04cc942"
    "lt"
  end
  language "lv" do
    sha256 "3bdfae7653ea45d2c7313cdfb49f9411998a11d3c9a41c6d102fd578e6bf983f"
    "lv"
  end
  language "ms" do
    sha256 "af8a2d650a825ecd55566338d51cc61361868f13d3b4c57e3fee7c84c6d7eee9"
    "ms"
  end
  language "nb" do
    sha256 "d98f4d885356c6173feff82bbfcc2c99c4c0c6b0a096b096f4c1b0a5dbd7e851"
    "nb-NO"
  end
  language "nl" do
    sha256 "c954fe07aa261d9e67ddca8e4c8d7e5c04d9d208079d07450f25f5e98d60505c"
    "nl"
  end
  language "pa-IN" do
    sha256 "c0f0d54db6f244e3ef882ff6246f910004126a73b806ad237827f831f4094a6b"
    "pa-IN"
  end
  language "pl" do
    sha256 "2bfe94caa85730dd86ee00ed030de029783dc619c4de9b7b36c504254c8a8b8c"
    "pl"
  end
  language "pt" do
    sha256 "75620c2a567158fd302e502114dc29efa9dd4f1a15c0749ebc58c517d654f438"
    "pt-PT"
  end
  language "pt-BR" do
    sha256 "2815b1dd108ea7c85fd75a10c670ad6edbca434285e7dc3d52478d0ac03403d6"
    "pt-BR"
  end
  language "rm" do
    sha256 "0528dcc4e2d20f67e843e345a26821c6f379e390bfd1fa091d767280b1c4b1af"
    "rm"
  end
  language "ro" do
    sha256 "bef3a0db29464c2077b05d1d3b84ce0ce6205b328e72e129d060b461b04b9e32"
    "ro"
  end
  language "ru" do
    sha256 "30b57d9756299f545d852d2f48e290c8f84d1971e9ded8851b9dfe4d52da4b27"
    "ru"
  end
  language "sk" do
    sha256 "b60b91ef2bcdb74f4c8a9dd8bdcb29e8f12d579227e7ddd98ba27647a2de490e"
    "sk"
  end
  language "sl" do
    sha256 "6cb33cbaadb665ce9645c225e6ba94350267c4fe64abb1715d0a0b5219f4d2c9"
    "sl"
  end
  language "sq" do
    sha256 "af78cd10a3de30b40a434da6b027e77428cb73f529284584430a8ae01cb1a8ba"
    "sq"
  end
  language "sr" do
    sha256 "d066aa2d1b6e0789d91a185992e166a48fd57daf8e291fa30e69e387c0cf8737"
    "sr"
  end
  language "sv" do
    sha256 "6a95910931c91c48fabeca87d120526ecb5aa5655c54ca57ce63ffef6611cc0e"
    "sv-SE"
  end
  language "th" do
    sha256 "662ff9f185e855e88c9c8d8589a90d99d4603c33301edd28d43375894f9f4ddd"
    "th"
  end
  language "tr" do
    sha256 "f7866282e254fed54f7bd11051468af433ae689067dba926985918c82a925a37"
    "tr"
  end
  language "uk" do
    sha256 "73d659f270c4a4d813aa7126c1b88167be7bd419ac657745b9c6df7660a71f65"
    "uk"
  end
  language "uz" do
    sha256 "276ae0584e31d4c4a21caf591d05167fa9b83430c4f96d9feec7d6ffe1d0c63a"
    "uz"
  end
  language "vi" do
    sha256 "834066938c99caca91efb24c9b39b3fb47218a882f24766008c55c6837d1f34f"
    "vi"
  end
  language "zh-TW" do
    sha256 "f99af3379cba2c0ff3b144c60f8bdd58b0d04700d7181b63eb65d01e34e7d79a"
    "zh-TW"
  end
  language "zh" do
    sha256 "cea26c689fbbb191add7cd076b71ba09b28c3320043754a88eac040d5920d04e"
    "zh-CN"
  end

  url "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/#{version}/mac/#{language}/Thunderbird%20#{version}.dmg",
      verified: "download-installer.cdn.mozilla.net/pub/thunderbird/"
  name "Mozilla Thunderbird"
  desc "Customizable email client"
  homepage "https://www.thunderbird.net/#{language}/"

  livecheck do
    url "https://product-details.mozilla.org/1.0/thunderbird_versions.json"
    strategy :json do |json|
      json["LATEST_THUNDERBIRD_VERSION"]
    end
  end

  auto_updates true
  conflicts_with cask: "thunderbird@esr"
  depends_on :macos

  app "Thunderbird.app"

  zap trash: [
        "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.thunderbird*.sfl*",
        "~/Library/Application Support/Thunderbird",
        "~/Library/Caches/Mozilla/updates/Applications/Thunderbird*",
        "~/Library/Caches/Thunderbird",
        "~/Library/Preferences/org.mozilla.thunderbird*.plist",
        "~/Library/Saved Application State/org.mozilla.thunderbird*.savedState",
        "~/Library/Thunderbird",
      ],
      rmdir: "~/Library/Caches/Mozilla"
end
