homebrew-core/Formula/apktool.rb
ilovezfs 5dae58f94b apktool 2.2.2
Closes #9194.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-01-24 10:29:56 +01:00

25 lines
887 B
Ruby

class Apktool < Formula
desc "Tool for reverse engineering 3rd party, closed, binary Android apps"
homepage "https://github.com/iBotPeaches/Apktool"
url "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.2.jar", :using => :nounzip
sha256 "2110cdbdfd08b25daa85ccfb2ff8cab84cf5c32d3be1a0296f1d015a019724a9"
bottle :unneeded
resource "sample.apk" do
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk", :using => :nounzip
sha256 "bf3ec04631339538c8edb97ebbd5262c3962c5873a2df9022385156c775eb81f"
end
def install
libexec.install "apktool_#{version}.jar"
bin.write_jar_script libexec/"apktool_#{version}.jar", "apktool"
end
test do
resource("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