-
Notifications
You must be signed in to change notification settings - Fork 0
/
ownbrew.rb
57 lines (49 loc) · 1.52 KB
/
ownbrew.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
49
50
51
52
53
54
55
56
57
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Ownbrew < Formula
desc "Your local project package manager"
homepage "https://github.com/foomo/ownbrew"
version "0.2.3"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/foomo/ownbrew/releases/download/v0.2.3/ownbrew_0.2.3_darwin_amd64.tar.gz"
sha256 "7af8d0edcaaa23eddc3add5b0f2a8cc3b0c0768aede38a4ead2b1611fe9bb91b"
def install
bin.install "ownbrew"
end
end
if Hardware::CPU.arm?
url "https://github.com/foomo/ownbrew/releases/download/v0.2.3/ownbrew_0.2.3_darwin_arm64.tar.gz"
sha256 "2172072e5c073365c95c57a9fd57f035f8d7df3dc52dd9c18573517096a81be3"
def install
bin.install "ownbrew"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/ownbrew/releases/download/v0.2.3/ownbrew_0.2.3_linux_amd64.tar.gz"
sha256 "717703357e25f8b3add6e484649defdea9f8cb3f5b49ee4690c4d35b30b755e4"
def install
bin.install "ownbrew"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/ownbrew/releases/download/v0.2.3/ownbrew_0.2.3_linux_arm64.tar.gz"
sha256 "c84681cf592705934cbbf21b8ff179effc8f7c23722e20bace648e79f8e5ef9d"
def install
bin.install "ownbrew"
end
end
end
end
def caveats
<<~EOS
ownbrew --help
EOS
end
end