cask "raw-photo-processor" do
  # Betas of this software are release quality: https://groups.google.com/d/msg/raw-photo-processor/PJyyP2JwIwI/dn3CFknuCwAJ
  version "1956Beta"
  sha256 "ec57f099fbbbb89a3d0aaec6a5492e12e32c8b4677096a27bd1316a025df12ec"

  url "https://www.raw-photo-processor.com/RPP/RPP64_#{version}.zip"
  name "Raw Photo Processor"
  desc "Process raw photos"
  homepage "https://www.raw-photo-processor.com/RPP/Overview.html"

  livecheck do
    # New releases are posted in upstream's Google Group
    # The RSS feed is no longer available as deprecated by Google
    # https://groups.google.com/g/raw-photo-processor
    skip "No version information available"
  end

  depends_on :macos

  app "Raw Photo Processor 64.app"

  zap trash: [
    "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.tigry.rpp.sfl*",
    "~/Library/Application Support/RPP",
    "~/Library/Caches/net.tigry.rpp",
    "~/Library/HTTPStorages/net.tigry.rpp",
    "~/Library/Preferences/net.tigry.rpp.plist",
    "~/Library/Saved Application State/net.tigry.rpp.savedState",
  ]
end
