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

class Duti < Formula
  homepage 'http://duti.org/'
  head 'https://github.com/moretension/duti.git'
  url 'https://github.com/moretension/duti/archive/duti-1.5.2.tar.gz'
  sha1 '1833c0a56646a132fa09bcb31c557d4393f19a3b'

  depends_on "autoconf" => :build

  def install
    system "autoreconf", "-vfi"
    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/duti", "-x", "txt"
  end
end