-
Notifications
You must be signed in to change notification settings - Fork 0
/
kraftkit.rb
62 lines (54 loc) · 1.74 KB
/
kraftkit.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Kraftkit < Formula
desc "Build and use highly customized and ultra-lightweight unikernels."
homepage "https://kraftkit.sh"
version "0.9.2"
license "BSD-3-Clause"
depends_on "aarch64-elf-binutils"
depends_on "aarch64-elf-gcc"
depends_on "coreutils"
depends_on "gawk"
depends_on "gnu-sed"
depends_on "grep"
depends_on "m4"
depends_on "make"
depends_on "qemu"
depends_on "socat"
depends_on "wget"
depends_on "x86_64-elf-binutils"
depends_on "x86_64-elf-gcc"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/unikraft/kraftkit/releases/download/v0.9.2/kraft_0.9.2_darwin_amd64.tar.gz"
sha256 "a8685fd773e1bc379757aadf989a172b4c6954a34a6ccbd880cb7e88e5131806"
def install
bin.install "kraft"
end
end
if Hardware::CPU.arm?
url "https://github.com/unikraft/kraftkit/releases/download/v0.9.2/kraft_0.9.2_darwin_arm64.tar.gz"
sha256 "78f1a1e778c4f3c079b9a14a16f1559b31b064958d26ded237a683a69b0c6348"
def install
bin.install "kraft"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/unikraft/kraftkit/releases/download/v0.9.2/kraft_0.9.2_linux_amd64.tar.gz"
sha256 "889bb08df671b95fb76550af010a6b89aaaf5061ca8694c74262aba2a554a92e"
def install
bin.install "kraft"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/unikraft/kraftkit/releases/download/v0.9.2/kraft_0.9.2_linux_arm64.tar.gz"
sha256 "b45489322fd7cf6012579c81aee675069c078903a83a2b0ab584d4e858284e98"
def install
bin.install "kraft"
end
end
end
end