lastpass-cli 0.3.0

This commit is contained in:
Stian Eikeland 2014-10-22 23:38:05 +02:00 committed by Mike McQuaid
parent e9149e0e4f
commit 74a4d5f94d

25
Formula/lastpass-cli.rb Normal file
View file

@ -0,0 +1,25 @@
require "formula"
class LastpassCli < Formula
homepage "https://github.com/lastpass/lastpass-cli"
url "https://github.com/lastpass/lastpass-cli/archive/v0.3.0.tar.gz"
sha1 "a4491bc5d258899ead6c64d4f97d23af93e03ff9"
depends_on "openssl"
depends_on "pinentry" => :optional
option "with-doc", "Install man pages"
if build.with? "doc"
depends_on "asciidoc" => :build
end
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