31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
class Apktool < Formula
|
|
desc "Tool for reverse engineering 3rd party, closed, binary Android apps"
|
|
homepage "https://github.com/iBotPeaches/Apktool"
|
|
url "https://github.com/iBotPeaches/Apktool/releases/download/v2.7.0/apktool_2.7.0.jar"
|
|
sha256 "c11b5eb518d9ac2ab18e959cbe087499079072b04d567cdcae5ceb447f9a7e7d"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "0dc361a605644f6b294e767fe30b7c47812222b344e8e6b1a9780f3251170291"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
resource "homebrew-sample.apk" do
|
|
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk"
|
|
sha256 "bf3ec04631339538c8edb97ebbd5262c3962c5873a2df9022385156c775eb81f"
|
|
end
|
|
|
|
def install
|
|
libexec.install "apktool_#{version}.jar"
|
|
bin.write_jar_script libexec/"apktool_#{version}.jar", "apktool"
|
|
end
|
|
|
|
test do
|
|
resource("homebrew-sample.apk").stage do
|
|
system bin/"apktool", "d", "robodemo-sample-1.0.1.apk"
|
|
system bin/"apktool", "b", "robodemo-sample-1.0.1"
|
|
end
|
|
end
|
|
end
|