forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlitecoin.rb
34 lines (27 loc) · 878 Bytes
/
litecoin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cask "litecoin" do
version "0.21.3"
sha256 "9b36a5b59f2a1632d5ec39f266332648d9148ab2895f4b3fd9ec1a9a6c08ded9"
url "https://download.litecoin.org/litecoin-#{version}/osx/litecoin-#{version}-osx.dmg"
name "Litecoin"
desc "Cryptocurrency wallet"
homepage "https://litecoin.org/"
livecheck do
url :homepage
regex(/href=.*?litecoin[._-]v?(\d+(?:\.\d+)+)[^"' >]*?\.dmg/i)
end
app "Litecoin-Qt.app"
preflight do
set_permissions "#{staged_path}/Litecoin-Qt.app", "0755"
end
postflight do
set_permissions "#{appdir}/Litecoin-Qt.app", "0555"
end
uninstall_preflight do
set_permissions "#{appdir}/Litecoin-Qt.app", "0755"
end
zap trash: [
"~/Library/Application Support/Litecoin",
"~/Library/Preferences/org.litecoin.Litecoin-Qt.plist",
"~/Library/Saved Application State/org.litecoin.Litecoin-Qt.savedState",
]
end