-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(magnetico): add
tgragnato/magnetico
version 1.61.2
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "czmq" => :build | ||
depends_on "go" => :build | ||
|
||
def install | ||
Check warning on line 12 in Formula/magnetico.rb GitHub Actions / test-bot (macos-14)`brew install --verbose --formula --build-bottle tgragnato/tap/magnetico` failed on macOS Sonoma (14) on Apple Silicon!
|
||
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 |