-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsoft-serve.rb
More file actions
65 lines (59 loc) · 2.62 KB
/
soft-serve.rb
File metadata and controls
65 lines (59 loc) · 2.62 KB
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
# 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.land/"
version "0.11.6"
license "MIT"
depends_on "bash"
depends_on "git"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.11.6/soft-serve_0.11.6_Darwin_x86_64.tar.gz"
sha256 "7c5bd67529c8fb4450cded6836b80733054e442497dc3e582a1f41ac3bc0de14"
define_method(:install) do
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.11.6/soft-serve_0.11.6_Darwin_arm64.tar.gz"
sha256 "92782b1fc9912d886a9299b2f5b1157141afc02d596264cc414557392cd6fa0b"
define_method(:install) do
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? && Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.11.6/soft-serve_0.11.6_Linux_x86_64.tar.gz"
sha256 "b8fd6eb9a6d197d407cc9cf2c4ef58f3bce7a2966353984edf1a728cba6b9da8"
define_method(:install) do
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? && Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/soft-serve/releases/download/v0.11.6/soft-serve_0.11.6_Linux_arm64.tar.gz"
sha256 "cebf8b7aa3b16983dbce795e6a039d08a45a2b328d96415ba276f064ebf08dea"
define_method(:install) do
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