29 lines
983 B
Ruby
29 lines
983 B
Ruby
class Lf < Formula
|
|
desc "Terminal file manager"
|
|
homepage "https://godoc.org/github.com/gokcehan/lf"
|
|
url "https://github.com/gokcehan/lf/archive/r17.tar.gz"
|
|
sha256 "a6906f6c40de8cbd643d0dc6a7a25b83a6403f0e87a8352289189bea17123342"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "577b07faf529ac6934b52a8c34453d76865938876b34ad8c860e14fbec5732b6" => :catalina
|
|
sha256 "7381c831dc9444b1b151d6b9c8bb8d4c6a8bf0030ebf6dee7fa0e34b00b5a78b" => :mojave
|
|
sha256 "6231de35fbdbc59be8ce3fb69cd5e87fee84dbfcb5aa81300835900109cc8161" => :high_sierra
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", *std_go_args, "-ldflags", "-X main.gVersion=#{version}"
|
|
man1.install "lf.1"
|
|
zsh_completion.install "etc/lf.zsh" => "_lf"
|
|
fish_completion.install "etc/lf.fish"
|
|
end
|
|
|
|
test do
|
|
assert_equal version.to_s, shell_output("#{bin}/lf -version").chomp
|
|
assert_match "file manager", shell_output("#{bin}/lf -doc")
|
|
end
|
|
end
|