Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sifdecode 2.4.1 #71

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions sifdecode.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Sifdecode < Formula
desc "SIF Decoder"
homepage "https://github.com/ralna/SIFDecode/wiki"
url "https://github.com/ralna/SIFDecode/archive/v2.0.1.tar.gz"
sha256 "c2d92e899bdcc65258f37e09ddf31904ac9ebed80b50170b1cfd1f40997f5d12"
revision 2
url "https://github.com/ralna/SIFDecode/archive/refs/tags/v2.4.1.tar.gz"
sha256 "f1f873b3b36233a893d6d593fcd3264cd5310e41916d30206a16f787b62c7f88"

head "https://github.com/ralna/SIFDecode.git"

Expand All @@ -19,31 +18,31 @@ class Sifdecode < Formula
env :std

def install
ENV.deparallelize

if OS.mac?
machine, key = Hardware::CPU.is_64_bit? ? %w[mac64 13] : %w[mac 12]
machine, key = Hardware::CPU.is_64_bit? ? %w[mac64 2] : %w[mac 4]
arch = "osx"
comp = "2"
comp = "4"
Pathname.new("sifdecode.input").write <<~EOF
#{key}
#{comp}
nny
n#{comp}
ny
EOF
else
machine = "pc64"
arch = "lnx"
comp = "5"
comp = "8"
Pathname.new("sifdecode.input").write <<~EOF
6
2
#{comp}
nny
1
1
n#{comp}
ny
EOF
end

ENV["ARCHDEFS"] = Formula["archdefs"].opt_libexec
system "./install_sifdecode < sifdecode.input"
ENV.deparallelize do
system "./install_sifdecode < sifdecode.input"
end

# We only want certain links in /usr/local/bin.
libexec.install Dir["*"]
Expand Down
Loading