aboutsummaryrefslogblamecommitdiff
path: root/Formula/git-permalink-latest.rb
blob: a36e16183395ea32482fb450f50adbe7d05b29ec (plain) (tree)
1
2
3
4
5


                                                                          

                                                                                                                     











                                                
class Git-permalinkLatest < 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-7f0c97b64bcccbdcd1667f2c2ca8f1face9ca027.tar.gz'
  sha256 '12aada33a3c4c6b8d5b1e711584209f63df1cf96658302f1ee3abbcf0ab49031'
  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