Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / n / nestopia.rb
blobfb1db51a7b77ac288bae2e21f49e0e26e4f12b8e
1 cask "nestopia" do
2   version "1.4.5"
3   sha256 "c427cad8bbc9973e955d787faf40a7dc76610c935097beb307c2496c776a0bb7"
5   url "https://www.bannister.org/software/dlh/nestopia-#{version.no_dots}.zip"
6   name "Nestopia"
7   desc "Nintendo Entertainment System (NES) emulator"
8   homepage "https://www.bannister.org/software/nestopia.htm"
10   livecheck do
11     url :homepage
12     regex(/>\s*?Nestopia\s+?v?(\d+(?:\.\d+)+)\s*?</i)
13   end
15   depends_on macos: ">= :high_sierra"
17   app "Nestopia v#{version}/Nestopia.app"
19   zap trash: [
20     "~/Library/Application Support/Bannister/Nestopia",
21     "~/Library/Preferences/com.bannister.nestopia.plist",
22     "~/Library/Saved Application State/com.bannister.nestopia.savedState",
23   ]
24 end