cask "thunderbird" do
  version "115.7.0"

  language "af" do
    sha256 "ded7f72d975c7b2a8c0e2f9108bcf0f808a8a15183354fdd6e6826cb966411c5"
    "af"
  end
  language "ar" do
    sha256 "cd98f63fe29391ba9ec7c21a8d2d830d5b50e290e8c65ed84af225bb72af09a5"
    "ar"
  end
  language "be" do
    sha256 "ec6be6e62447497692bef4cfd7a705a05c7e73e49ff6e4e44f5392e3e7a8176f"
    "be"
  end
  language "bg" do
    sha256 "7b4bb1fb45345e58a3eec226570a6373054b52cfe241059401ddd8f8904cf98b"
    "bg"
  end
  language "ca" do
    sha256 "2959703e2b439ffc220d2c8d30058dc8beb59c08bc8bfa4d8ffe172746604da8"
    "ca"
  end
  language "cs" do
    sha256 "b33cba9ededf3866bd0dccf664007ce1cad5fd93f213e76b7d8ca6271100260c"
    "cs"
  end
  language "cy" do
    sha256 "6e9ad40fbee945c70290e5d5be04a4a44d6762674cd830aeb211f71a53c65a1b"
    "cy"
  end
  language "da" do
    sha256 "1ea06093372ed0a6b9d8d800b85b43c10b3904383cd163afa61361ed720d3a92"
    "da"
  end
  language "de" do
    sha256 "cd128138bac0ae25ac9450b06c2f9f03e72f961ba4e8cb1c93134372440a74df"
    "de"
  end
  language "el" do
    sha256 "d2ec8ef51a0b0b42a000bfa572faf41f0031a27de083b0f3b35783106b0723f1"
    "el"
  end
  language "en-CA" do
    sha256 "1a648a3f026abd4d0bb14a518c4141a7de0a2ec6584932a55fa93487e33e49f1"
    "en-CA"
  end
  language "en-GB" do
    sha256 "1406ffe5dee2e9ce6255f1a5b6159ec36b27466e84e9a867e01e1be7941c3d5c"
    "en-GB"
  end
  language "en", default: true do
    sha256 "74a04bfa8e2906a8ab05b7acbeb273ea84a4a4b5110f711759baecaba00e5da2"
    "en-US"
  end
  language "es-ES" do
    sha256 "a92c8d521513cf81684b7f2c06a59e8123d093055b9c719f847d052d611e9267"
    "es-ES"
  end
  language "es-MX" do
    sha256 "d69fca16bc3c500a5c8fc0dbedc706afcf9d383a12571767181586125dc3d9dc"
    "es-MX"
  end
  language "et" do
    sha256 "6cdbc67d6c09811468c492321976b2bd5ffb1658eeaf7c9a622d6592f3521224"
    "et"
  end
  language "fi" do
    sha256 "2647a4c6ac6b1c698d92e77de1b6e60d6df6c3a531461710a37b5507f4231660"
    "fi"
  end
  language "fr" do
    sha256 "6051900d0639e92d525c2720ad012e3b37bdc2a403667b4acb99ec78aa62c13e"
    "fr"
  end
  language "fy" do
    sha256 "1aab34ef519d57e9437be0a4314427e8dcd1ccb3da0fc17b986f8ce898e3421e"
    "fy-NL"
  end
  language "ga" do
    sha256 "f3c7dd5a2484903d2e8ce9e3850fcccd3f37c9dd9dca891503e80f818177ef3f"
    "ga-IE"
  end
  language "gd" do
    sha256 "a837e4530214b2e11673bacff1c1588c057d7a65a5acabe10dcdd2b5bafe4e2a"
    "gd"
  end
  language "gl" do
    sha256 "e45a2aceddd126ce3f3868317f5a6e411a1d21b438010b6a19a535fdbefc28e3"
    "gl"
  end
  language "he" do
    sha256 "af751f64337df9a0f98c57b1764a8e5fea7af772cc15bc0a6dd54ac90b6cc3e5"
    "he"
  end
  language "hr" do
    sha256 "527d9cee22b2f4aeed8b021cf955655a6d6da88a38c2dcb64873ee20d30b8c53"
    "hr"
  end
  language "hu" do
    sha256 "617f40f07433acdb06f4224aa5fdb0a6c644cf3d4dda0a8195217b8461dcdcfd"
    "hu"
  end
  language "hy" do
    sha256 "98affda5553b9d440711e30767b2eca1bbfc0f1a207f3b65e38158b50f04d179"
    "hy-AM"
  end
  language "is" do
    sha256 "9284e2ade4aab80752b181b0c691add88e3851c075a2bcd6f7debde6197678e0"
    "is"
  end
  language "it" do
    sha256 "eb4087fd1f687da74391b409c16b9d56301ad4d1c4247d977a24622592740492"
    "it"
  end
  language "ja" do
    sha256 "cb908f9782fbb3e01d3c0ae81389f03a689aa32c0863414d7176a0aedba89c19"
    "ja-JP-mac"
  end
  language "ka" do
    sha256 "abe3bca530825495d267d927b8c293eca9aa0d49ad1472ad00f47eca3ab242ca"
    "ka"
  end
  language "ko" do
    sha256 "bfcab79bb40d1f82fda37f7421aec98959062898d42eacf3c35c70fa5944e1cd"
    "ko"
  end
  language "lt" do
    sha256 "cfbcb73253eb2b1e2e9e4e5d55e998fca070f52e8a7704df86f29a0b2277d995"
    "lt"
  end
  language "lv" do
    sha256 "76a10b7e81010b6bc2bc3b265d4427b1c40e9e8940cf0a907f4898c3f8db79c8"
    "lv"
  end
  language "ms" do
    sha256 "7c435af84032261cd0334ea19aea59695830a95658508dc8b2f3a51c62c1db2b"
    "ms"
  end
  language "nb" do
    sha256 "b5b6a107b99bae828a644dbbd03835851d7cd8a994188447e9fc0f5454e9e480"
    "nb-NO"
  end
  language "nl" do
    sha256 "6a367080657385c394419ae57f3e9dd1ec6c18d2e6174355824f2bcd3800b007"
    "nl"
  end
  language "pa-IN" do
    sha256 "67fc23236553fe0eed7adfa519d4ae50366343c89cf3306fed9c43cd3df229d3"
    "pa-IN"
  end
  language "pl" do
    sha256 "8e3487e32d93bc3dca2a1248ae3f582927c5415b4ee46353e7ed3cab7fcbcfb7"
    "pl"
  end
  language "pt" do
    sha256 "dc2389accdd0f61d17229deb03f54da00d6c7d9ab5faf2c38f92cc67760d60e8"
    "pt-PT"
  end
  language "pt-BR" do
    sha256 "a0f133619e4ed86a331df9ad6ce0f4149e49e8e359b6b3c4ad747fbcc21be875"
    "pt-BR"
  end
  language "rm" do
    sha256 "fd03db372d3c259a17b9833d91e4b3af77f12a7df034e47676f7375b7b862505"
    "rm"
  end
  language "ro" do
    sha256 "276c7e533e64ed98f675279f86c13108d7650cad8295473a1f6e1911e887ec4c"
    "ro"
  end
  language "ru" do
    sha256 "a1922b5281849e7fa60c8b810be4e5331a8cfed41648aa27e8696036494ed610"
    "ru"
  end
  language "sk" do
    sha256 "1395e70fcf279ac164045ad960c69368ba4608a72940b8e9ac8481fa543341d1"
    "sk"
  end
  language "sl" do
    sha256 "1da41e36bdbdd0fe33de1b942dd9af476a0c70922d7658c83348685ac5181c8c"
    "sl"
  end
  language "sq" do
    sha256 "70aafb4f3d6c4a24aa956123be802a1595c408e13835579b7bacc2b3023432ac"
    "sq"
  end
  language "sr" do
    sha256 "0254f4a2516e15c111c80356c560fc3089051926d82178be65d522870dd62b41"
    "sr"
  end
  language "sv" do
    sha256 "5c6af4884a4a32e0ae4eaabdd2534eb0efef28e6ff191380c536b79bfb7797d5"
    "sv-SE"
  end
  language "th" do
    sha256 "0f5f7b9e5060ab0b39bab71343af7d4987d6325f1a4aa0069dfb8deb06398f3f"
    "th"
  end
  language "tr" do
    sha256 "82830384d8db393c02fc9d74be5f2f20e82df968f3a622b7dfb5b8cbe52eba8e"
    "tr"
  end
  language "uk" do
    sha256 "63c6cf32f717aa9ac49e7aa8f3cac221bf203389f664c4ad7d8016f253be7dcb"
    "uk"
  end
  language "uz" do
    sha256 "c71bde6c39bc3747e431f28fcb51edf6113d0401f9e9352e46a2bc51a7dc580c"
    "uz"
  end
  language "vi" do
    sha256 "61420825d3f0d8ceae2a6b2285e6779e3b1f75f25361d172a2fa0d702699dc49"
    "vi"
  end
  language "zh-TW" do
    sha256 "51003b732f04b156be225c0f9b2069ed4b60d97c1c93f1169d2f803c6d76bbed"
    "zh-TW"
  end
  language "zh" do
    sha256 "942ffc7a6e2723c1ef739ca8461c4b682eceafda6cf5e636a7891ec62fed3f22"
    "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/"

  livecheck do
    url :homepage
    regex(/href=.*?thunderbird[._-]v?(\d+(?:\.\d+)+)[._-]SSL/i)
  end

  auto_updates true
  depends_on macos: ">= :sierra"

  app "Thunderbird.app"

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