homebrew-core/Formula/dust.rb

25 lines
835 B
Ruby
Raw Normal View History

2019-05-27 03:21:01 +00:00
class Dust < Formula
desc "More intuitive version of du in rust"
homepage "https://github.com/bootandy/dust"
url "https://github.com/bootandy/dust/archive/v0.4.1.2.tar.gz"
sha256 "e5b1b43203f58130dec0f69b1eb02e7a855cbaa2efcf79274187f9149de016bc"
2019-05-27 03:21:01 +00:00
head "https://github.com/bootandy/dust.git"
2019-06-07 11:58:09 +00:00
bottle do
cellar :any_skip_relocation
2019-11-03 06:05:39 +00:00
sha256 "6343dcf3b0bb0e4a749ae2e7f0145c9e2142c9783dfaf3fdba2ac5b8a1de6ce1" => :catalina
sha256 "d6a3d605922957c82a631d643d5025511e21e9b0ceddf6b2998b6a0f086c9c77" => :mojave
sha256 "ae2e22191c5f37c366f6b0b93e0c525a5b2013f32cd0ae287bef84a12490422a" => :high_sierra
2019-06-07 11:58:09 +00:00
end
2019-05-27 03:21:01 +00:00
depends_on "rust" => :build
def install
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
2019-05-27 03:21:01 +00:00
end
test do
assert_match /\d+.+?\./, shell_output("#{bin}/dust -n 1")
end
end