lastpass-cli 0.3.0
This commit is contained in:
parent
e9149e0e4f
commit
74a4d5f94d
1 changed files with 25 additions and 0 deletions
25
Formula/lastpass-cli.rb
Normal file
25
Formula/lastpass-cli.rb
Normal 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
|
Loading…
Reference in a new issue