-
Notifications
You must be signed in to change notification settings - Fork 7
/
melange.rb
55 lines (47 loc) · 1.59 KB
/
melange.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Melange < Formula
desc "Build apk packages using declarative pipelines"
homepage "https://github.com/chainguard-dev/melange"
version "0.15.14"
on_macos do
on_intel do
url "https://github.com/chainguard-dev/melange/releases/download/v0.15.14/melange_0.15.14_darwin_amd64.tar.gz"
sha256 "817e4f68cb9875fe7f646586293d733bb6aef0be9ab92f05ebe2e01dce22e06e"
def install
bin.install "melange" => "melange"
end
end
on_arm do
url "https://github.com/chainguard-dev/melange/releases/download/v0.15.14/melange_0.15.14_darwin_arm64.tar.gz"
sha256 "74d981794c0947c9eedfb9867594ac37ca19576179c33a62572f443f0a74aa4e"
def install
bin.install "melange" => "melange"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/chainguard-dev/melange/releases/download/v0.15.14/melange_0.15.14_linux_amd64.tar.gz"
sha256 "edd96de4036775875505276c96e9b2276f52ba2a5fbe698bd711f497d8370e4a"
def install
bin.install "melange" => "melange"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/chainguard-dev/melange/releases/download/v0.15.14/melange_0.15.14_linux_arm64.tar.gz"
sha256 "f316e4d8fc27933d1682e8032e23acf278c2a5d205cc2680ba55d70e0095d9dc"
def install
bin.install "melange" => "melange"
end
end
end
end
test do
system "#{bin}/melange", "version"
end
end