homebrew-cask/Casks/xquartz.rb

43 lines
1.5 KiB
Ruby

cask "xquartz" do
version "2.7.11"
sha256 "32e50e8f1e21542b847041711039fa78d44febfed466f834a9281c44d75cd6c3"
# bintray.com/xquartz/ was verified as official when first introduced to the cask
url "https://dl.bintray.com/xquartz/downloads/XQuartz-#{version}.dmg"
appcast "https://www.xquartz.org/releases/sparkle/release.xml"
name "XQuartz"
homepage "https://www.xquartz.org/"
auto_updates true
pkg "XQuartz.pkg"
uninstall quit: "org.macosforge.xquartz.X11",
launchctl: [
"org.macosforge.xquartz.startx",
"org.macosforge.xquartz.privileged_startx",
],
pkgutil: "org.macosforge.xquartz.pkg",
delete: [
"/opt/X11",
"/private/etc/manpaths.d/40-XQuartz",
"/private/etc/paths.d/40-XQuartz",
]
zap trash: [
"~/.Xauthority",
"~/Library/Application Support/XQuartz",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.macosforge.xquartz.x11.sfl*",
"~/Library/Caches/org.macosforge.xquartz.X11",
"~/Library/Cookies/org.macosforge.xquartz.X11.binarycookies",
"~/Library/Logs/X11/org.macosforge.xquartz.log",
"~/Library/Logs/X11/org.macosforge.xquartz.log.old",
"~/Library/Preferences/org.macosforge.xquartz.X11.plist",
"~/Library/Saved Application State/org.macosforge.xquartz.X11.savedState",
],
rmdir: [
"~/.fonts",
"~/Library/Logs/X11",
]
end