-
Notifications
You must be signed in to change notification settings - Fork 2
/
recipe.rb
40 lines (32 loc) · 894 Bytes
/
recipe.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class LastPassCli < FPM::Cookery::Recipe
name 'lastpass-cli'
version '1.3.3'
revision '3'
maintainer 'Dave Wongillies <dave.gillies@gmail.com>'
license 'GPL-2.0'
homepage "https://github.com/lastpass/#{name}"
source "https://github.com/lastpass/#{name}.git",
:with => 'git',
:tag => "v#{version}"
description 'LastPass command line interface tool'
build_depends 'libcurl4-openssl-dev',
'libssl-dev',
'libxml2-dev',
'cmake',
'bash-completion',
'pkg-config',
'xsltproc',
'asciidoc',
'docbook-xsl'
depends 'openssl', 'pinentry-curses', 'xclip'
def build
make
make 'doc-man'
end
def install
make :install, 'DESTDIR' => destdir
man1.install 'build/lpass.1'
doc(name).install 'contrib/examples'
share('fish/vendor_completions.d').install 'contrib/completions-lpass.fish', 'lpass.fish'
end
end