Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / s / send-to-kindle.rb
blobef73f87570f84c70b4bdf7b3d6194fbc304f0f96
1 cask "send-to-kindle" do
2   version "1.1.1.258"
3   sha256 :no_check
5   url "https://sendtokindle.s3.amazonaws.com/SendToKindleForMac-installer.pkg",
6       verified: "sendtokindle.s3.amazonaws.com/"
7   name "Send to Kindle"
8   desc "Tool for sending personal documents to Kindles from Macs"
9   homepage "https://www.amazon.com/gp/sendtokindle/mac"
11   livecheck do
12     url :url
13     strategy :extract_plist
14   end
16   pkg "SendToKindleForMac-installer.pkg"
18   uninstall launchctl: "com.amazon.sendtokindle.launcher",
19             quit:      "com.amazon.SendToKindle",
20             pkgutil:   "com.amazon.SendToKindleMacInstaller.pkg"
22   zap trash: [
23     "~/Library/Application Support/Amazon/SendToKindle",
24     "~/Library/Logs/SendToKindleInstall.log",
25     "~/Library/Preferences/com.amazon.SendToKindle.plist",
26   ]
28   caveats do
29     requires_rosetta
30   end
31 end