33 lines
617 B
Ruby
33 lines
617 B
Ruby
#
|
|
# Cookbook:: kosmos-bitcoin
|
|
# Recipe:: c-lightning
|
|
#
|
|
|
|
build_essential
|
|
include_recipe "git"
|
|
|
|
%w{
|
|
autoconf automake libtool libgmp-dev libsqlite3-dev
|
|
python3 python3-mako net-tools zlib1g-dev
|
|
libsodium-dev gettext
|
|
}.each do |pkg|
|
|
apt_package pkg
|
|
end
|
|
|
|
git node['c-lightning']['source_dir'] do
|
|
repository node['c-lightning']['repo']
|
|
revision node['c-lightning']['revision']
|
|
action :sync
|
|
notifies :run, 'bash[compile_c-lightning]', :immediately
|
|
end
|
|
|
|
bash "compile_c-lightning" do
|
|
cwd node['c-lightning']['source_dir']
|
|
code <<-EOH
|
|
./configure
|
|
make
|
|
make install
|
|
EOH
|
|
action :nothing
|
|
end
|