Skip to content

Commit c67ea6a

Browse files
committed
Moves Homebrew Formula to this repo
1 parent b1ee661 commit c67ea6a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Formula/dloom.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class Dloom < Formula
2+
desc "Dotfile manager and system bootstrapper"
3+
homepage "https://github.com/dloomorg/dloom"
4+
url "https://github.com/dloomorg/dloom/archive/refs/tags/v0.0.8.tar.gz"
5+
sha256 "d7a6e79182a695bedb309e477ea8b8e2a30327b9803536c601d92428d38d7c2b"
6+
license "MIT"
7+
head "https://github.com/dloomorg/dloom.git", branch: "main"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
system "go", "build", *std_go_args(ldflags: "-s -w -X github.com/dloomorg/dloom/cmd.Version=#{version}"), "-o", bin/"dloom"
13+
end
14+
15+
test do
16+
assert_match "dloom version: #{version}", shell_output("#{bin}/dloom version")
17+
end
18+
end

0 commit comments

Comments
 (0)