25 lines
949 B
Ruby
25 lines
949 B
Ruby
class Tree < Formula
|
|
bottle do
|
|
root_url "https://homebrew.hyprnet/bottles"
|
|
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ef367d0a5e74970e2f5042479fe4000a8b324ac075520c66f8457f1cb06ca668"
|
|
sha256 cellar: :any_skip_relocation, arm64_tahoe: "d1967d2ed08717f963addb249ea6b8ca11c26ecb59efba34f2860853a06bedc7"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "b98eef11e53b024a3e9422fbeabeb6c9b13d70ea884087703e7e1536820b3c5c"
|
|
end
|
|
desc "Display directories as trees (with optional color/HTML output)"
|
|
homepage "https://oldmanprogrammer.net/source.php?dir=projects/tree"
|
|
url "https://github.com/Old-Man-Programmer/tree/archive/refs/tags/2.3.2.tar.gz"
|
|
sha256 "22cf32e84e3eb508d97a9e991c2c3cc006b9dcf4afed201d96311c5c57d08fcf"
|
|
license "GPL-2.0-or-later"
|
|
compatibility_version 1
|
|
|
|
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}", "MANDIR=#{man}"
|
|
end
|
|
|
|
test do
|
|
system bin/"tree", prefix
|
|
end
|
|
end
|