2014-10-22 21:38:05 +00:00
|
|
|
class LastpassCli < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "LastPass command-line interface tool"
|
2014-10-22 21:38:05 +00:00
|
|
|
homepage "https://github.com/lastpass/lastpass-cli"
|
2015-06-10 20:54:56 +00:00
|
|
|
url "https://github.com/lastpass/lastpass-cli/archive/v0.5.1.tar.gz"
|
|
|
|
sha256 "46b8b1e85085f816bd10b12bd3d74cef59ad8b1b4dc7ac9ec67366d8c22f99a6"
|
2014-11-14 23:02:30 +00:00
|
|
|
head "https://github.com/lastpass/lastpass-cli.git"
|
2014-10-22 21:38:05 +00:00
|
|
|
|
2014-10-22 21:45:47 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-06-10 21:07:24 +00:00
|
|
|
sha256 "56c3b3a9db9032ad4873d760f5b51ac0d434bda68a5096ab4e89fa15e7b5839b" => :yosemite
|
|
|
|
sha256 "235bea0f96d2c65483fe111174e904b0d6029b6e358f25d3cd757edde8a2c5f3" => :mavericks
|
|
|
|
sha256 "f09bcd279c1ade1d40b893e8fa34b7072f5cc2da15722669d38a05912725f478" => :mountain_lion
|
2014-10-22 21:45:47 +00:00
|
|
|
end
|
|
|
|
|
2014-10-22 21:38:05 +00:00
|
|
|
option "with-doc", "Install man pages"
|
|
|
|
|
2015-03-13 23:19:00 +00:00
|
|
|
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
|