2017-06-09 12:20:39 +00:00
|
|
|
class Fd < Formula
|
|
|
|
desc "Simple, fast and user-friendly alternative to find."
|
|
|
|
homepage "https://github.com/sharkdp/fd"
|
2017-09-10 07:10:45 +00:00
|
|
|
url "https://github.com/sharkdp/fd/archive/v3.0.0.tar.gz"
|
|
|
|
sha256 "9124e0f531894fac8afd5a8635ab00bd70dbed3e2af6c22a9fdaf862b1b0e71c"
|
2017-06-09 12:20:39 +00:00
|
|
|
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
|
|
|
|
|
2017-06-09 12:20:39 +00:00
|
|
|
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
|