Skip to content

Commit ec308ba

Browse files
committed
Add i686-unknown-linux-gnu formula
1 parent 6b45678 commit ec308ba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

i686-unknown-linux-gnu.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class I686UnknownLinuxGnu < Formula
2+
desc "i686 Linux GNU Toolchain"
3+
homepage "https://github.com/messense/homebrew-macos-cross-toolchains"
4+
license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }
5+
6+
if Hardware::CPU.arm?
7+
url "https://github.com/messense/homebrew-macos-cross-toolchains/releases/download/v1.2.0/i686-unknown-linux-gnu-aarch64-darwin.tar.gz"
8+
version "10.2.0"
9+
sha256 "7c99ada64c92d427e690d0ff532b7fdfa9f8c63aa5638a64490897554a3c7dfd"
10+
else
11+
url "https://github.com/messense/homebrew-macos-cross-toolchains/releases/download/v1.2.0/i686-unknown-linux-gnu-x86_64-darwin.tar.gz"
12+
version "10.2.0"
13+
sha256 "314ae8ec1edd7d300503bf358a4de8b961b57e4bbd6281d684bd049fcad35b0f"
14+
end
15+
16+
def install
17+
(prefix/"toolchain").install Dir["./*"]
18+
Dir.glob(prefix/"toolchain/bin/*") {|file| bin.install_symlink file}
19+
end
20+
end

0 commit comments

Comments
 (0)