homebrew-core/Formula/lastpass-cli.rb

30 lines
1,002 B
Ruby
Raw Normal View History

2014-10-22 21:38:05 +00:00
class LastpassCli < Formula
desc "LastPass command-line interface tool"
2014-10-22 21:38:05 +00:00
homepage "https://github.com/lastpass/lastpass-cli"
url "https://github.com/lastpass/lastpass-cli/archive/v0.5.1.tar.gz"
sha256 "46b8b1e85085f816bd10b12bd3d74cef59ad8b1b4dc7ac9ec67366d8c22f99a6"
head "https://github.com/lastpass/lastpass-cli.git"
2014-10-22 21:38:05 +00:00
bottle do
cellar :any
2015-06-10 21:07:24 +00:00
sha256 "56c3b3a9db9032ad4873d760f5b51ac0d434bda68a5096ab4e89fa15e7b5839b" => :yosemite
sha256 "235bea0f96d2c65483fe111174e904b0d6029b6e358f25d3cd757edde8a2c5f3" => :mavericks
sha256 "f09bcd279c1ade1d40b893e8fa34b7072f5cc2da15722669d38a05912725f478" => :mountain_lion
end
2014-10-22 21:38:05 +00:00
option "with-doc", "Install man pages"
depends_on "asciidoc" => :build if build.with? "doc"
depends_on "openssl"
depends_on "pinentry" => :optional
2014-10-22 21:38:05 +00:00
def install
system "make", "PREFIX=#{prefix}", "install"
system "make", "MANDIR=#{man}", "install-doc" if build.with? "doc"
end
test do
system "#{bin}/lpass", "--version"
end
end