From c547b942305cf1eef31c70d777d51ef1498424a9 Mon Sep 17 00:00:00 2001 From: Tommaso Gragnato Date: Sat, 7 Sep 2024 13:11:40 +0200 Subject: [PATCH] feat(magnetico): add `tgragnato/magnetico` version 1.61.2 --- Formula/magnetico.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/magnetico.rb diff --git a/Formula/magnetico.rb b/Formula/magnetico.rb new file mode 100644 index 0000000..065cbb2 --- /dev/null +++ b/Formula/magnetico.rb @@ -0,0 +1,22 @@ +class Magnetico < Formula + desc "Autonomous (self-hosted) BitTorrent DHT search engine suite" + homepage "https://github.com/tgragnato/magnetico/" + url "https://github.com/tgragnato/magnetico.git", + tag: "v1.61.2", + revision: "5ed053c9c2d38c6650bc6ba22935326dc6d3b378" + license "AGPL-3.0-only" + + depends_on "go" => :build + depends_on "czmq" + + def install + ENV["CGO_ENABLED"] = "1" + ENV["GOPATH"] = buildpath + system "go", "build", *std_go_args, "-o", bin/"magnetico", "." + end + + test do + system "go", "test", "./..." + system "#{bin}/magnetico", "--version" + end +end \ No newline at end of file