aboutsummaryrefslogtreecommitdiff
path: root/Formula/git-permalink-0-1-0.rb
blob: fc4f728e0c5f1fa0f862d202d36d3a5cfd18533a (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class GitPermalink010 < Formula
  desc 'Git extension to generate web permalinks of files in a repository'
  homepage 'https://euandre.org/s/git-permalink/'
  url 'https://euandre.org/git/git-permalink/snapshot/git-permalink-v0.1.0.tar.xz'
  sha256 '252c98e349fed8df180ace540675b69a811ff56a9f06fa505eb475e047648a1f'
  license 'AGPL-3.0-or-later'

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

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