homebrew-cask/Casks/xquartz.rb

41 lines
1.3 KiB
Ruby

cask "xquartz" do
version "2.8.1"
sha256 "0eb477f3f8f3795738df9a6a8a15e3858fe21fe9d7103b8d13861bb3aa509e3b"
url "https://github.com/XQuartz/XQuartz/releases/download/XQuartz-#{version}/XQuartz-#{version}.dmg",
verified: "github.com/XQuartz/XQuartz/"
name "XQuartz"
desc "Open-source version of the X.Org X Window System"
homepage "https://www.xquartz.org/"
livecheck do
url "https://www.xquartz.org/releases/sparkle/release.xml"
strategy :sparkle do |item|
item.short_version.delete_prefix("XQuartz-")
end
end
auto_updates true
pkg "XQuartz.pkg"
uninstall launchctl: "org.xquartz.privileged_startx",
pkgutil: "org.xquartz.X11"
zap trash: [
"~/.Xauthority",
"~/Library/Application Support/XQuartz",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.xquartz.x11.sfl*",
"~/Library/Caches/org.xquartz.X11",
"~/Library/Cookies/org.xquartz.X11.binarycookies",
"~/Library/Logs/X11/org.xquartz.log",
"~/Library/Logs/X11/org.xquartz.log.old",
"~/Library/Preferences/org.xquartz.X11.plist",
"~/Library/Saved Application State/org.xquartz.X11.savedState",
],
rmdir: [
"~/.fonts",
"~/Library/Logs/X11",
]
end