-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcunicu.rb
60 lines (53 loc) · 2.19 KB
/
cunicu.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cunicu < Formula
desc "A zeroconf peer-to-peer mesh VPN using Wireguard® and Interactive Connectivity Establishment (ICE)"
homepage "https://cunicu.li"
version "0.12.0"
license "Apache-2.0"
depends_on "bash-completion" => :optional
depends_on "wireguard-tools" => :optional
on_macos do
url "https://github.com/cunicu/cunicu/releases/download/v0.12.0/cunicu_0.12.0_darwin_all.tar.gz"
sha256 "6fb878eca2b6d36cc3f01c30039b75f904b1d324459e6cf733bf29ad42118b55"
def install
bin.install "cunicu"
etc.install "etc/cunicu.yaml", "etc/cunicu.advanced.yaml"
bash_completion.install "completions/cunicu.bash" => "cunicu"
zsh_completion.install "completions/cunicu.zsh" => "_cunicu"
fish_completion.install "completions/cunicu.fish"
man1.install Dir["man/*.1"]
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/cunicu/cunicu/releases/download/v0.12.0/cunicu_0.12.0_linux_amd64.tar.gz"
sha256 "c5316c6d0d4962cc231f81fdec533b3b07bdb3395e85c14293823533910c66df"
def install
bin.install "cunicu"
etc.install "etc/cunicu.yaml", "etc/cunicu.advanced.yaml"
bash_completion.install "completions/cunicu.bash" => "cunicu"
zsh_completion.install "completions/cunicu.zsh" => "_cunicu"
fish_completion.install "completions/cunicu.fish"
man1.install Dir["man/*.1"]
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/cunicu/cunicu/releases/download/v0.12.0/cunicu_0.12.0_linux_arm64.tar.gz"
sha256 "b5833e9165bd4d822ae41622057435d51f9592a945282d8166d8aabd19e9dcdf"
def install
bin.install "cunicu"
etc.install "etc/cunicu.yaml", "etc/cunicu.advanced.yaml"
bash_completion.install "completions/cunicu.bash" => "cunicu"
zsh_completion.install "completions/cunicu.zsh" => "_cunicu"
fish_completion.install "completions/cunicu.fish"
man1.install Dir["man/*.1"]
end
end
end
end
end