-
Notifications
You must be signed in to change notification settings - Fork 0
/
cunicu.rb
60 lines (53 loc) · 2.16 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.5.65"
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.5.65/cunicu_0.5.65_darwin_all.tar.gz"
sha256 "317d490f21586a10b08932c772c584997f00d0592af409cb5d67968bcb2790b6"
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
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/cunicu/cunicu/releases/download/v0.5.65/cunicu_0.5.65_linux_amd64.tar.gz"
sha256 "d613931dda3c6c53d0adfd11bd776976b7c2e4fe537acd5f0fae66a48178e6e8"
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
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/cunicu/cunicu/releases/download/v0.5.65/cunicu_0.5.65_linux_arm64.tar.gz"
sha256 "69a6d16ece481bdb4841786a04a07023fd2592379946edeb25d72a5fb44c16e7"
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