homebrew-core/Formula/geph2.rb

32 lines
1.1 KiB
Ruby

class Geph2 < Formula
desc "Modular Internet censorship circumvention system"
homepage "https://geph.io"
url "https://github.com/geph-official/geph2/archive/v0.22.5.tar.gz"
sha256 "4afca74d97c890061d34c8885258d6f4a48c63e69c7e8b56719fdae68c4f306b"
license "GPL-3.0-only"
bottle do
cellar :any_skip_relocation
sha256 "7d6622ad8567fda7a73bd85ae3ca5229bd83c6289d3e56aa2b7c6aa67eb0c621" => :big_sur
sha256 "c289cb8558247b38814c51298da6ba86ed16ab0f9ee49eeb097464aee5702189" => :catalina
sha256 "8133f7174bdd1218ad3799543b85d2e932ffab60b89181ce209b314c57847c9d" => :mojave
sha256 "392a4199771a8ff4c5aa1c45bd3225640d9949aa1e2a9af915e488093fe84ff9" => :high_sierra
end
depends_on "go" => :build
def install
bin_path = buildpath/"src/github.com/geph-official/geph2"
bin_path.install Dir["*"]
cd bin_path/"cmd/geph-client" do
ENV["CGO_ENABLED"] = "0"
system "go", "build", "-o",
bin/"geph-client", "-v", "-trimpath"
end
end
test do
assert_match "username = homebrew", shell_output("#{bin}/geph-client -username homebrew -dumpflags")
end
end