Skip to content

Commit 500cd66

Browse files
authored
Merge pull request Homebrew#226896 from Homebrew/qrkey
qrkey 0.0.1 (new formula)
2 parents 2dbba22 + 9a14620 commit 500cd66

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/q/qrkey.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class Qrkey < Formula
2+
desc "Generate and recover QR codes from files for offline private key backup"
3+
homepage "https://github.com/Techwolf12/qrkey"
4+
url "https://github.com/Techwolf12/qrkey/archive/refs/tags/v0.0.1.tar.gz"
5+
sha256 "7c1777245e44014d53046383a96c1ee02b3ac1a4b014725a61ae707a79b7e82d"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "bb0fc3c4115102c6544d9f753c2e16dba1533314099ff50385b7442689b378a4"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "bb0fc3c4115102c6544d9f753c2e16dba1533314099ff50385b7442689b378a4"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "bb0fc3c4115102c6544d9f753c2e16dba1533314099ff50385b7442689b378a4"
12+
sha256 cellar: :any_skip_relocation, sonoma: "7d9d690e34e9d67f33134a59820b1c3d7936cf0c8b33e0f0297c58b0c7a25520"
13+
sha256 cellar: :any_skip_relocation, ventura: "7d9d690e34e9d67f33134a59820b1c3d7936cf0c8b33e0f0297c58b0c7a25520"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "d151a47fbbc11d37a7e9613ecd6d9e0427ac8a54134cdd74e18d32f69b2dba9e"
15+
end
16+
17+
depends_on "go" => :build
18+
19+
def install
20+
system "go", "build", *std_go_args(ldflags: "-s -w")
21+
generate_completions_from_executable(bin/"qrkey", "completion")
22+
end
23+
24+
test do
25+
system bin/"qrkey", "generate", "--in", test_fixtures("test.jpg"), "--out", "generated.pdf"
26+
assert_path_exists testpath/"generated.pdf"
27+
end
28+
end

0 commit comments

Comments
 (0)