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.0.tar.gz"
sha256 "09e7b1e5c1520db2a34a49e7ae07e5b3a7555a4ed2490ed7b56f047065bca812"
head "https://github.com/lastpass/lastpass-cli.git"
2014-10-22 21:38:05 +00:00
bottle do
cellar :any
2015-03-14 14:29:59 +00:00
sha256 "b881d418eb5bd553df3b4743df7487493fee59527f126a76781f9b477af7cc37" => :yosemite
sha256 "20c359cbc4c4e4cf79c7d7563539578063c6243788715a2b691aec5796e92709" => :mavericks
sha256 "626b8ca141ee1c798029024ccdacfcad78b71baf1c8ec4c615d7ab16e2c64ebc" => :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