aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tlsdate.rb
blob: 689b2b601086112c814e7cdabd33bb220e53a12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Tlsdate < Formula
  homepage 'https://www.github.com/ioerror/tlsdate/'
  url 'https://github.com/ioerror/tlsdate/archive/tlsdate-0.0.6.tar.gz'
  sha1 '7b0cbd73b81ee2775396724f42c0fb22f7020361'
  head 'https://github.com/ioerror/tlsdate.git'

  depends_on :autoconf
  depends_on :automake
  depends_on :libtool
  depends_on 'pkg-config' => :build

  def install
    system './autogen.sh'
    system './configure', '--disable-dependency-tracking', "--prefix=#{prefix}"
    system 'make', 'install'
  end

  def test
    system 'tlsdate', '--verbose', '--dont-set-clock'
  end
end