diff --git a/Formula/hostd.rb b/Formula/hostd.rb new file mode 100644 index 0000000..20eef70 --- /dev/null +++ b/Formula/hostd.rb @@ -0,0 +1,17 @@ +class Hostd < Formula + desc "Hostd: A host for Sia" + homepage "https://github.com/SiaFoundation/hostd" + url "https://github.com/SiaFoundation/hostd.git", :tag => "v1.0.2-beta.1" + + depends_on "go" => :build + + def install + system "go", "generate", "./..." + system "go", "build", "-tags='netgo'", "-trimpath", "-o", bin/"hostd", "-a", "-ldflags", "-s -w", "./cmd/hostd" + end + + test do + system "#{bin}/hostd", "version" + end +end + diff --git a/README.md b/README.md index bd77cef..59f688a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Or `brew tap siafoundation/sia` and then `brew install `. ### Available Formulae - [renterd](https://github.com/SiaFoundation/renterd) +- [hostd](https://github.com/SiaFoundation/hostd) ## Documentation