30 lines
1.3 KiB
Ruby
30 lines
1.3 KiB
Ruby
class Diskus < Formula
|
|
desc "Minimal, fast alternative to 'du -sh'"
|
|
homepage "https://github.com/sharkdp/diskus"
|
|
url "https://github.com/sharkdp/diskus/archive/v0.6.0.tar.gz"
|
|
sha256 "661687edefa3218833677660a38ccd4e2a3c45c4a66055c5bfa4667358b97500"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2b3c800cb9f9387eabe0820cf588be1c10cb00204bb6838c067a0f35c691ab8a"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "56ca7dc82e101e1dbb7090fe1567c924bd967f4d3df8b138caa45182fd76e446"
|
|
sha256 cellar: :any_skip_relocation, catalina: "3c4f0aafa14c810b36b2d5dbeb6998bdc866aad7b531f12f14508ee2e8b1c46d"
|
|
sha256 cellar: :any_skip_relocation, mojave: "16deb101df03efdcc20f56ed24d2e9608e8733e3bf9f552935ccc73428ac96a3"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "e603cd7daf7d48e0f139b584ef77f4f59949470e4e2d0ee0f430ac229fe444ea"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "7eb0588350167e38dc14e6ba328e08faca5940c4659ef2e84d3e80533bc14617"
|
|
end
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
system "cargo", "install", *std_cargo_args
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.txt").write("Hello World")
|
|
output = shell_output("#{bin}/diskus #{testpath}/test.txt")
|
|
assert_match "4096", output
|
|
end
|
|
end
|