-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
unshield.rb
41 lines (35 loc) 路 2.06 KB
/
unshield.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
class Unshield < Formula
desc "Extract files from InstallShield cabinet files"
homepage "https://github.com/twogood/unshield"
url "https://github.com/twogood/unshield/archive/refs/tags/1.5.1.tar.gz"
sha256 "34cd97ff1e6f764436d71676e3d6842dc7bd8e2dd5014068da5c560fe4661f60"
license "MIT"
revision 1
head "https://github.com/twogood/unshield.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any, arm64_sonoma: "3c94cad60f60b556e156ca326c5e6a85416b866c2e76b97ffe61213080744317"
sha256 cellar: :any, arm64_ventura: "4919d2591a3822980fc17ed43ce5550ec7a40aa5f0a3df597222147d4eded84d"
sha256 cellar: :any, arm64_monterey: "1956ca8994e481560c1f7d548d3af0f5ebdf82ff632a6bbd5de320cb87162436"
sha256 cellar: :any, arm64_big_sur: "3f410a76b57b1cde50eb5f564afec25ebc83a5a07b0251bcdbba468c2d902610"
sha256 cellar: :any, sonoma: "98605661de105fbc71fd02729d5d7468b0680f593ee96debaf67c12dfafc3929"
sha256 cellar: :any, ventura: "32e84d1e1fd8e1b06dede6e390d72c1335cefefcecf875d2088093ac56f67836"
sha256 cellar: :any, monterey: "cd329f3c7c6a0eb689adc539072a66228042b126b89e41fd7fc2e2017c302b4b"
sha256 cellar: :any, big_sur: "bcfab080b4f19f79161072f22eb8dbc16ca0907c65ed497784e156f83c102959"
sha256 cellar: :any, catalina: "459cca0a961fff42ce428014c5ae250925835a722f2553fc015ae0a52d178c25"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c30ebbc1b331b3eff9f80d5ef689f8934ee3c684f7b1cba914b9c1e45795128d"
end
depends_on "cmake" => :build
depends_on "openssl@3"
uses_from_macos "zlib"
def install
# cmake check for libiconv will miss the OS library without this hint
ENV.append "LDFLAGS", "-liconv" if OS.mac?
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DUSE_OUR_OWN_MD5=OFF"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
system bin/"unshield", "-e", "sjis", "-V"
end
end