-
Notifications
You must be signed in to change notification settings - Fork 0
/
jhol.rb
48 lines (41 loc) · 1.37 KB
/
jhol.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
41
42
43
44
45
46
47
48
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Jhol < Formula
desc "CLI to display and check Japanese holidays."
homepage "https://github.com/kanmu/jhol"
version "2.2.1"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/kanmu/jhol/releases/download/v2.2.1/jhol_2.2.1_darwin_amd64.tar.gz"
sha256 "22d8529dba31490db4f7d62585f68f0434eef6927df00a5ba78000bb33076301"
def install
bin.install 'jhol'
end
end
if Hardware::CPU.arm?
url "https://github.com/kanmu/jhol/releases/download/v2.2.1/jhol_2.2.1_darwin_arm64.tar.gz"
sha256 "82b78ee6728f22a3fa3a1add8458ca692efae5493157bbea7f2b3e7eca403930"
def install
bin.install 'jhol'
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/kanmu/jhol/releases/download/v2.2.1/jhol_2.2.1_linux_arm64.tar.gz"
sha256 "08adf79b5eab3b10cb2dcab879f5bc133e2b4a1e0176bfa54e0a55951f536186"
def install
bin.install 'jhol'
end
end
if Hardware::CPU.intel?
url "https://github.com/kanmu/jhol/releases/download/v2.2.1/jhol_2.2.1_linux_amd64.tar.gz"
sha256 "45ab7c5858bcd6d0ba0033af3c9450f635de92e991ddf2e1ce4f834d77115105"
def install
bin.install 'jhol'
end
end
end
end