Skip to content

Commit

Permalink
add merkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Dec 28, 2023
1 parent 6c5dfcc commit 4311625
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions Formula/merkdir.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# frozen_string_literal: true

class Merkdir < Formula
desc "Create Merkle trees from your directories."
homepage "https://github.com/makew0rld/merkdir"
url "https://github.com/makew0rld/merkdir/archive/v1.0.0.tar.gz"
sha256 "382da73c97f5284489a6a9337d8ea30505808b595de9d510a3c154529c16a226"
license "GPL-3.0"
version "1.0.0"

depends_on "go" => :build
depends_on "just" => :build

head do
url 'https://github.com/makew0rld/merkdir.git', :branch => "main"
end

def install
if build.head?
system "git", "fetch", "--tags"
system "git", "fetch", "--unshallow"
system "#{HOMEBREW_PREFIX}/bin/just", "builtby=homebrew-tap"
else
system "#{HOMEBREW_PREFIX}/bin/just", "builtby=homebrew-tap", "version=v1.0.0", "commit=a959087452d780b6412458df402b4b72a6739974", "date=unknown"
end
bin.install "merkdir"
end

end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ My custom repository for [Homebrew](https://brew.sh/). The Homebrew formulae for
## Setup

```shell
brew tap makeworld-the-better-one/tap
brew tap makew0rld/tap
```

0 comments on commit 4311625

Please sign in to comment.