cask "universal-media-server" do
  version "10.13.0"
  sha256 "08eb44f7b4b62a93db1002712c6d1f663f6cdd0b95b711073baff2bc63a62789"

  url "https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/#{version}/UMS-#{version}.dmg",
      verified: "github.com/UniversalMediaServer/UniversalMediaServer/"
  name "Universal Media Server"
  desc "Media server supporting DLNA, UPnP and HTTP(S)"
  homepage "https://www.universalmediaserver.com/"

  depends_on macos: ">= :catalina"

  app "Universal Media Server.app"

  zap trash: [
    "~/Library/Application Support/UMS",
    "~/Library/Saved Application State/net.pms.PMS.savedState",
  ]
end
