excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / stolendata-mpv.rb
blobdb53a22d2f2723db4ecc9c07e2d3ab9128209c50
1 cask "stolendata-mpv" do
2   arch arm: "-arm64"
4   on_arm do
5     version "0.39.0"
6     sha256 "9c81c5cf2e756cf9c2fef97a00627140ea7c6b46079469ce3b1a13b4cd4f5b2b"
8     livecheck do
9       url "https://laboratory.stolendata.net/~djinn/mpv_osx/"
10       regex(/mpv-arm64-(\d+(?:\.\d+)+)\.t/i)
11     end
13     depends_on macos: ">= :sonoma"
14   end
15   on_intel do
16     on_catalina :or_older do
17       version "0.35.0"
18       sha256 "376415c787aef391a3927cdecd5bb0dac9f21ef9d7742516b8cd8d8ce502e7b6"
20       livecheck do
21         skip "Legacy version"
22       end
23     end
24     on_big_sur :or_newer do
25       version "0.39.0"
26       sha256 "35ec81ad86a97b24956a8d0f4fa1ba2690b44ae7741c920e923620bcd7bd402a"
28       livecheck do
29         url "https://laboratory.stolendata.net/~djinn/mpv_osx/"
30         regex(/mpv-(\d+(?:\.\d+)+)\.t/i)
31       end
32     end
33   end
35   url "https://laboratory.stolendata.net/~djinn/mpv_osx/mpv#{arch}-#{version}.tar.gz",
36       verified: "laboratory.stolendata.net/~djinn/mpv_osx/"
37   name "mpv"
38   desc "Media player based on MPlayer and mplayer2"
39   homepage "https://mpv.io/"
41   conflicts_with formula: "mpv"
43   app "mpv.app"
44   binary "#{appdir}/mpv.app/Contents/MacOS/mpv"
45   manpage "documentation/man/mpv.1"
47   zap trash: [
48     "~/.config/mpv",
49     "~/Library/Logs/mpv.log",
50     "~/Library/Preferences/io.mpv.plist",
51     "~/Library/Preferences/mpv.plist",
52   ]
53 end