Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / w / wgcf.rb
blobdb50147db0dad4e37a97267dcfd94f52e3df796b
1 class Wgcf < Formula
2   desc "Generate WireGuard profile from Cloudflare Warp account"
3   homepage "https://github.com/ViRb3/wgcf"
4   url "https://github.com/ViRb3/wgcf/archive/refs/tags/v2.2.24.tar.gz"
5   sha256 "f4ebecc1df2235190dde2f8876f1811e9064cbac8b113db1f63e7f20b828358a"
6   license "MIT"
7   head "https://github.com/ViRb3/wgcf.git", branch: "master"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "c56f4c91cec0dd2847d79ea2ea2bb6058f5074b071251dd319334c6cdcbffea9"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "c56f4c91cec0dd2847d79ea2ea2bb6058f5074b071251dd319334c6cdcbffea9"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "c56f4c91cec0dd2847d79ea2ea2bb6058f5074b071251dd319334c6cdcbffea9"
13     sha256 cellar: :any_skip_relocation, sonoma:        "a46299d7984157151643e57b0add53bcbf851047bff8356f7751e0400dab24d5"
14     sha256 cellar: :any_skip_relocation, ventura:       "a46299d7984157151643e57b0add53bcbf851047bff8356f7751e0400dab24d5"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "f8f54a5b2684df99cb051007a25888871134cbb54bca6c0b07c7248ab175823c"
16   end
18   depends_on "go" => :build
20   def install
21     system "go", "build", *std_go_args(ldflags: "-s -w")
23     generate_completions_from_executable(bin/"wgcf", "completion")
24   end
26   test do
27     system bin/"wgcf", "trace"
28   end
29 end