Skip to content

Commit

Permalink
feat(magnetico): add tgragnato/magnetico version 1.61.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tgragnato committed Sep 7, 2024
1 parent 63bb8de commit c547b94
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Formula/magnetico.rb
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 22 in Formula/magnetico.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/TrailingEmptyLines: Final newline missing.

Check failure on line 22 in Formula/magnetico.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

Layout/TrailingEmptyLines: Final newline missing.

0 comments on commit c547b94

Please sign in to comment.