cask "snap-motion" do
  version "5.0.0"
  sha256 "09ee8a5c4e6a24021be10a430f7f8134874df4adaf8db5bad9ae8393338215b3"

  url "http://das-nas.myasustor.com/dapp-dmg/SnapMotion-#{version.before_comma}.dmg"
  name "SnapMotion"
  desc "Extract images from videos"
  homepage "https://neededapps.com/snapmotion/"

  livecheck do
    url "https://neededapps.com/appcasts/snapmotion/changelog.xml"
    strategy :sparkle
  end

  depends_on macos: ">= :big_sur"
  app "SnapMotion.app"

  zap trash: [
    "~/Library/Application Support/SnapMotion",
    "~/Library/Caches/com.jeremyvizzini.snapmotion.osx",
    "~/Library/Preferences/com.jeremyvizzini.snapmotion.osx.plist",
    "~/Library/Saved Application State/com.jeremyvizzini.snapmotion.osx.savedState",
  ]
end
