32 lines
1.0 KiB
Ruby
32 lines
1.0 KiB
Ruby
class Fd < Formula
|
|
desc "Simple, fast and user-friendly alternative to find"
|
|
homepage "https://github.com/sharkdp/fd"
|
|
url "https://github.com/sharkdp/fd/archive/v8.1.1.tar.gz"
|
|
sha256 "7b327dc4c2090b34c7fb3e5ac7147f7bbe6266c2d44b182038d36f3b1d347cc1"
|
|
head "https://github.com/sharkdp/fd.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "4625e56da438b94dfe331a2fe1df759b140931241af097df91f29d8ac314f2d3" => :catalina
|
|
sha256 "d002e8d8de192b6fad189ff7830d4fe9fc7d4ca9e81aa5ac66bb5200c590703a" => :mojave
|
|
sha256 "c269bbc76090614e7262c81e1b21d784050a71a51a5921686845f0d3c0855400" => :high_sierra
|
|
end
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
ENV["SHELL_COMPLETIONS_DIR"] = buildpath
|
|
system "cargo", "install", *std_cargo_args
|
|
man1.install "doc/fd.1"
|
|
bash_completion.install "fd.bash"
|
|
fish_completion.install "fd.fish"
|
|
zsh_completion.install "_fd"
|
|
end
|
|
|
|
test do
|
|
touch "foo_file"
|
|
touch "test_file"
|
|
assert_equal "test_file", shell_output("#{bin}/fd test").chomp
|
|
end
|
|
end
|