aboutsummaryrefslogtreecommitdiff
path: root/Formula/td-latest.rb
blob: 6ee8250bca7cf1f089d1c1d49b2d3b410a5badca (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class TdLatest < Formula
  desc 'Minimalistic bug tracker CLI'
  homepage 'https://td.euandreh.xyz'
  url 'https://euandreh.xyz/td.git/snapshot/td-707bb2080c35944b14da57f13310c4bad61259fe.tar.gz'
  sha256 'd25e72d3b68606c01ba1b5f98ec4c0458e684db0c981c9a974f383d2d919e063'
  license 'AGPL-3.0-or-later'

  def install
    system 'make'
    system 'make', 'check'
    system 'make', 'install', "PREFIX=#{prefix}"
  end

  test do
    system "#{bin}/td", '-V'
  end
end