aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tlsdate.rb
blob: 8b0c2b89d4f7a25a5f325fd8869e46bbf97f93e4 (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/"
  head "https://github.com/ioerror/tlsdate.git"
  url "https://github.com/ioerror/tlsdate/archive/tlsdate-0.0.8.tar.gz"
  sha1 "9de7c712ba21b61b06c130fe0e68fd6fdd3ab4aa"

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

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

  test do
    system "#{bin}/tlsdate", "--verbose", "--dont-set-clock"
  end
end