aboutsummaryrefslogtreecommitdiff
path: root/Formula/git-permalink-0-1-0.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-22 12:11:24 -0300
committerEuAndreh <eu@euandre.org>2023-03-22 15:51:52 -0300
commitb3ccc398cfd30ad9e243a041933204ea2e567535 (patch)
tree84ec606d88ace7e9d782d8e954b32d5d73bd6369 /Formula/git-permalink-0-1-0.rb
parentsrc/bin/paku: Get Base64 from paku.lock instead of calculating it (diff)
downloadpackage-repository-b3ccc398cfd30ad9e243a041933204ea2e567535.tar.gz
package-repository-b3ccc398cfd30ad9e243a041933204ea2e567535.tar.xz
Support Homebrew
Diffstat (limited to 'Formula/git-permalink-0-1-0.rb')
-rw-r--r--Formula/git-permalink-0-1-0.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Formula/git-permalink-0-1-0.rb b/Formula/git-permalink-0-1-0.rb
new file mode 100644
index 0000000..a7368a5
--- /dev/null
+++ b/Formula/git-permalink-0-1-0.rb
@@ -0,0 +1,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'
+ system 'make', 'check'
+ system 'make', 'install', "PREFIX=#{prefix}"
+ end
+
+ test do
+ system "#{bin}/git-permalink", '-V'
+ end
+end