Skip to content

Commit 36e0f8d

Browse files
HappyTobichenrui333
authored andcommitted
lima 0.4.0 (new formula)
* [NEW] lima - Linux virtual machines * [UPDATE] lima version * [UPDATE] change source to tar * lima 0.4.0 * remove trailing space Closes #79279. Co-authored-by: rui <[email protected]> Signed-off-by: Carlo Cabrera <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
1 parent 226fe2e commit 36e0f8d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Formula/lima.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class Lima < Formula
2+
desc "Linux virtual machines"
3+
homepage "https://github.com/AkihiroSuda/lima"
4+
url "https://github.com/AkihiroSuda/lima/archive/v0.4.0.tar.gz"
5+
sha256 "482e4cff30103aac5bf93feb76721f1ada26a7618e503365040c4adae2a28043"
6+
license "Apache-2.0"
7+
8+
depends_on "go" => :build
9+
depends_on "qemu"
10+
11+
def install
12+
system "make", "VERSION=#{version}", "clean", "binaries"
13+
14+
bin.install Dir["_output/bin/*"]
15+
share.install Dir["_output/share/*"]
16+
17+
# Install bash completion
18+
output = Utils.safe_popen_read("#{bin}/limactl", "completion", "bash")
19+
(bash_completion/"limactl").write output
20+
end
21+
22+
test do
23+
assert_match "Pruning", shell_output("#{bin}/limactl prune 2>&1")
24+
end
25+
end

0 commit comments

Comments
 (0)