-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqv.rb
More file actions
27 lines (23 loc) · 819 Bytes
/
qv.rb
File metadata and controls
27 lines (23 loc) · 819 Bytes
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
class Qv < Formula
desc "Quickly view your data"
homepage "https://github.com/timvw/qv"
if Hardware::CPU.arm?
url "https://github.com/timvw/qv/releases/download/v0.9.14/qv-aarch64-apple-darwin.tar.gz"
sha256 "663ce40c3a4e68a6b4feef93d919534c22922cc352588129c49e816a00359b4d"
else
url "https://github.com/timvw/qv/releases/download/v0.9.14/qv-x86_64-apple-darwin.tar.gz"
sha256 "26a19254960b934a9430f3830df64400de98f25e2a669b1e3bfad09a32176f76"
end
license "Apache-2.0"
version_scheme 1
head "https://github.com/timvw/qv.git", branch: "main"
depends_on :macos
def install
bin.install "qv"
doc.install "README.md" if File.exist?("README.md")
(share/"licenses"/name).install "LICENSE" if File.exist?("LICENSE")
end
test do
shell_output("#{bin}/qv -V")
end
end