-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkraftkit.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.4"
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.4/kraft_0.9.4_darwin_amd64.tar.gz"
sha256 "a1a105b8fc0c3b79536b75fa4c3781a5fbb8728ae79f07e86073189e93b9fcbe"
def install
bin.install "kraft"
end
end
if Hardware::CPU.arm?
url "https://github.com/unikraft/kraftkit/releases/download/v0.9.4/kraft_0.9.4_darwin_arm64.tar.gz"
sha256 "2449f76853428e7e10ca14f792ac40c1325099fb1bd517d5ee491297a283896c"
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.4/kraft_0.9.4_linux_amd64.tar.gz"
sha256 "6c235c38e4696525a7ab311ab27bbd98b1848f4e54cf001671409e7479acf894"
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.4/kraft_0.9.4_linux_arm64.tar.gz"
sha256 "e6a8939f1d12dc5c9e811c9e2cedd11f0e98ea814b77bf1c23b76e7299c10ccf"
def install
bin.install "kraft"
end
end
end
end