cask "captura" do
  version "1.1.1"
  sha256 "270d25f1c36d77b985bcbd79587e301c5eafe30ce4bc04360c3314e626472aca"

  url "https://build.r.bdr.sh/captura/Captura-#{version}.dmg"
  name "Captura"
  desc "Record your screen and share, backend optional."
  homepage "https://captura.tranquil.systems"

  livecheck do
    url "https://captura.tranquil.systems/appcast.xml"
    strategy :sparkle, &:short_version
  end

  auto_updates true

  app "Captura.app"

  zap trash: [
    "~/Library/Application Scripts/pizza.unlimited.Captura",
    "~/Library/Containers/pizza.unlimited.Captura",
    "~/Library/Caches/pizza.unlimited.Captura"
  ]
end