-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsoft-serve.rb
70 lines (62 loc) · 2.61 KB
/
soft-serve.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
58
59
60
61
62
63
64
65
66
67
68
69
70
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class SoftServe < Formula
desc "A tasty, self-hostable Git server for the command line🍦"
homepage "https://charm.sh/"
version "0.8.2"
depends_on "bash"
depends_on "git"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.8.2/soft-serve_0.8.2_Darwin_x86_64.tar.gz"
sha256 "74769685171ba7d71d64ad90f1ea93400d6508506fc9f7ffbf209e5dd53d66ed"
def install
bin.install "soft"
bash_completion.install "completions/soft-serve.bash" => "soft-serve"
zsh_completion.install "completions/soft-serve.zsh" => "_soft-serve"
fish_completion.install "completions/soft-serve.fish"
man1.install "manpages/soft-serve.1.gz"
end
end
if Hardware::CPU.arm?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.8.2/soft-serve_0.8.2_Darwin_arm64.tar.gz"
sha256 "a23167134b24df5a9d2232b9ad942b8fe903e9f51657af42ba8c26ab1e6a2cd6"
def install
bin.install "soft"
bash_completion.install "completions/soft-serve.bash" => "soft-serve"
zsh_completion.install "completions/soft-serve.zsh" => "_soft-serve"
fish_completion.install "completions/soft-serve.fish"
man1.install "manpages/soft-serve.1.gz"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.8.2/soft-serve_0.8.2_Linux_x86_64.tar.gz"
sha256 "f63c954a540183c5789eb8bd2399e2ac22d90be596d54fb68dc29cd2ac4acde3"
def install
bin.install "soft"
bash_completion.install "completions/soft-serve.bash" => "soft-serve"
zsh_completion.install "completions/soft-serve.zsh" => "_soft-serve"
fish_completion.install "completions/soft-serve.fish"
man1.install "manpages/soft-serve.1.gz"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.8.2/soft-serve_0.8.2_Linux_arm64.tar.gz"
sha256 "ae85153d2d1413d6661b500827e871f26c4b224c3d63b5f2c6414bf12801ee35"
def install
bin.install "soft"
bash_completion.install "completions/soft-serve.bash" => "soft-serve"
zsh_completion.install "completions/soft-serve.zsh" => "_soft-serve"
fish_completion.install "completions/soft-serve.fish"
man1.install "manpages/soft-serve.1.gz"
end
end
end
end
end