class Libsodium < FPM::Cookery::Recipe
  description 'ZBackup, a versatile deduplicating backup tool'

  name     'zbackup'
  version  YAML.load_file('../../hieradata/common.yaml')['zbackup::version']

  homepage 'zbackup.org'
  source   "https://github.com/zbackup/zbackup/archive/#{version}.tar.gz"
  sha256   'efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85'

  build_depends 'cmake', 'protobuf-compiler', 'libprotobuf-dev', 'liblzo2-dev', 'liblzma-dev','libssl-dev', 'build-essential'

  license  'BSD'

  section 'backup'

  def build
    safesystem('/usr/bin/cmake', '.')
    make
  end

  def install
  end
end
