homebrew-core/Formula/lsd.rb

25 lines
821 B
Ruby
Raw Normal View History

class Lsd < Formula
desc "Clone of ls with colorful output, file type icons, and more"
homepage "https://github.com/Peltoche/lsd"
url "https://github.com/Peltoche/lsd/archive/0.12.0.tar.gz"
sha256 "9b9a05452c23ccc94676e2e6b86f57805262496b14b6ec018df08996131eeec5"
2019-01-07 11:45:32 +00:00
bottle do
cellar :any_skip_relocation
sha256 "d9c592376ddcf9f8634ddae8c0fe80e8e50eec9bb33237e8706f6746f8fa5756" => :mojave
sha256 "7e35bf909cf5ad90c317f6d5d73aa72caa767298ed773e21e203ba4635c253b8" => :high_sierra
sha256 "3da3d3bbc6fbb235f789276e21144b76147ad5617c774cda798d78c8cb60994a" => :sierra
end
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
output = shell_output("#{bin}/lsd -l #{prefix}")
assert_match "README.md", output
end
end