excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / l / liclipse.rb
blob3d40aff70ec548d6f0f5646f2cf7c45074e75b53
1 cask "liclipse" do
2   version "11.1.0,bh5hc47dg1iamp7"
3   sha256 "0245e5c79a3433f1861b624ed1e2c913ca2ee0299118b135962ebc75dcfda6c6"
5   url "https://www.mediafire.com/file/#{version.csv.second}/liclipse_#{version.csv.first}_macosx.cocoa.x86_64.tar.gz",
6       verified: "mediafire.com/file/"
7   name "LiClipse"
8   desc "Lightweight editors, theming and usability improvements for Eclipse"
9   homepage "https://www.liclipse.com/"
11   livecheck do
12     url "https://www.liclipse.com/download.html"
13     regex(%r{href=.*?/([0-9a-z]+)/liclipse[._-]v?(\d+(?:\.\d+)+)_macosx\.cocoa\.x86_64\.t}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| "#{match[1]},#{match[0]}" }
16     end
17   end
19   app "LiClipse_x86_64/LiClipse.app"
20   app "LiClipse_x86_64/LiClipseJre19.app"
22   zap trash: [
23     "~/.liclipse",
24     "~/Documents/LiClipse Workspace",
25     "~/Library/Preferences/com.brainwy.liclipse.rcp.product.plist",
26     "~/Library/Saved Application State/com.brainwy.liclipse.rcp.product.savedState",
27   ]
28 end