aboutsummaryrefslogtreecommitdiff
path: root/Formula/git-permalink.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-19 09:22:30 -0300
committerEuAndreh <eu@euandre.org>2022-01-19 09:22:30 -0300
commite87e58b1d8d70e6457e1f513a50da6c2510f4f58 (patch)
tree5da924b6288a5f3ae915923f900fff2735f9f0f0 /Formula/git-permalink.rb
parentscripts/paku: Update $TARBALL_TEMPLATE URL (diff)
downloadpackage-repository-e87e58b1d8d70e6457e1f513a50da6c2510f4f58.tar.gz
package-repository-e87e58b1d8d70e6457e1f513a50da6c2510f4f58.tar.xz
Update all package definitions
Diffstat (limited to 'Formula/git-permalink.rb')
-rw-r--r--Formula/git-permalink.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Formula/git-permalink.rb b/Formula/git-permalink.rb
new file mode 100644
index 0000000..09ba0c8
--- /dev/null
+++ b/Formula/git-permalink.rb
@@ -0,0 +1,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