aboutsummaryrefslogtreecommitdiff
path: root/Formula/git-permalink.rb
blob: 09ba0c8045c6f8ee162b017f94ffa41b0b4f28bf (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Git-permalink < Formula
  desc 'Git extension to generate web permalinks of files in a repository'
  homepage 'https://git-permalink.euandreh.xyz'
  url 'https://euandreh.xyz/git-permalink.git/snapshot/git-permalink-0.2.2.tar.gz'
  sha256 '724b286e65e0e64c9d3f773011a3586783a5a65578fec0e9b3946978148c0761'
  license 'AGPL-3.0-or-later'

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

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