-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
formula.rb.j2
24 lines (21 loc) · 814 Bytes
/
formula.rb.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class {{ name }} < Formula
desc "{{ description }}"
homepage "https://github.com/messense/homebrew-macos-cross-toolchains"
license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }
version "{{ version }}"
depends_on "bdw-gc"
depends_on "guile"
depends_on "zstd"
depends_on "python@3.12"
if Hardware::CPU.arm?
url "https://github.com/messense/homebrew-macos-cross-toolchains/releases/download/v{{ version }}/{{ aarch64_artifact_name }}"
sha256 "{{ aarch64_sha256 }}"
else
url "https://github.com/messense/homebrew-macos-cross-toolchains/releases/download/v{{ version }}/{{ x86_64_artifact_name }}"
sha256 "{{ x86_64_sha256 }}"
end
def install
(prefix/"toolchain").install Dir["./*"]
Dir.glob(prefix/"toolchain/bin/*") {|file| bin.install_symlink file}
end
end