homebrew-core/Formula/fd.rb

26 lines
763 B
Ruby
Raw Normal View History

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/v3.0.0.tar.gz"
sha256 "9124e0f531894fac8afd5a8635ab00bd70dbed3e2af6c22a9fdaf862b1b0e71c"
head "https://github.com/sharkdp/fd.git"
2017-06-12 16:33:37 +00:00
bottle do
2017-09-10 07:18:27 +00:00
sha256 "a2d149054c7fd1b651a4cc6269d82b8498ffe9f0846157ec80db0023f0be35ec" => :sierra
sha256 "9bd4b5373ac9b70127f8cf116ad32d3e9081875d11629f16383bdd84f092a067" => :el_capitan
2017-06-12 16:33:37 +00:00
end
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/fd"
end
test do
touch "foo_file"
touch "test_file"
assert_equal "test_file", shell_output("#{bin}/fd test").chomp
end
end