/
goman.rb
40 lines (34 loc) · 1.15 KB
/
goman.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Goman < Formula
desc "The missing man pages for Go binaries"
homepage "https://github.com/appliedgocode/goman"
version "0.3.0"
license "BSD-3-Clause"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/appliedgocode/goman/releases/download/v0.3.0/goman_0.3.0_Darwin_x86_64.tar.gz"
sha256 "3d7bfe0fc945843f882983632d08ce952a20b82cbf0d23a8c592e53bcc36d167"
def install
bin.install "goman"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/appliedgocode/goman/releases/download/v0.3.0/goman_0.3.0_Linux_arm64.tar.gz"
sha256 "d17df59b95cbc03015ef8d4f3e0288c9d1cdca166bd46f875867496b7cfb9e79"
def install
bin.install "goman"
end
end
if Hardware::CPU.intel?
url "https://github.com/appliedgocode/goman/releases/download/v0.3.0/goman_0.3.0_Linux_x86_64.tar.gz"
sha256 "d0444a2dc320bb009d790ab3d025823f0903caf290cc5be2417e7417223799f1"
def install
bin.install "goman"
end
end
end
end