From f4fb841f294dca9df3600ff53745f33c6900ec7d Mon Sep 17 00:00:00 2001 From: Mathieu TUDISCO Date: Fri, 20 Dec 2024 16:16:12 +0100 Subject: [PATCH] ente-cli 0.2.2 (new formula) --- Formula/e/ente-cli.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/e/ente-cli.rb diff --git a/Formula/e/ente-cli.rb b/Formula/e/ente-cli.rb new file mode 100644 index 0000000000000..33ff36c0934bb --- /dev/null +++ b/Formula/e/ente-cli.rb @@ -0,0 +1,25 @@ +class EnteCli < Formula + desc "Utility for exporting data from Ente and decrypt the export from Ente Auth" + homepage "https://github.com/ente-io/ente/tree/main/cli" + url "https://github.com/ente-io/ente/archive/refs/tags/cli-v0.2.2.tar.gz" + sha256 "d03754880fe7dfdc422b37e4864c2aa469a2b19c645346de2d2de7fa62b71de3" + license "AGPL-3.0-only" + head "https://github.com/ente-io/ente.git", branch: "main" + + livecheck do + url :stable + regex(/^cli-v?(\d+(?:\.\d+)+)$/i) + end + + depends_on "go" => :build + + def install + cd "cli" do + system "go", "build", *std_go_args(ldflags: "-s -w", output: bin/"ente"), "main.go" + end + end + + test do + assert_match version.to_s, shell_output("#{bin}/ente version") + end +end