2011-09-11 11:53:57 +00:00
|
|
|
class Apktool < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tool for reverse engineering 3rd party, closed, binary Android apps"
|
2015-05-29 19:22:11 +00:00
|
|
|
homepage "https://github.com/iBotPeaches/Apktool"
|
2016-10-19 07:25:41 +00:00
|
|
|
url "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.1.jar", :using => :nounzip
|
|
|
|
sha256 "c83cf428044af3eb56af0434dfbb71c216b2e736d19a5b71f77701775c6a6463"
|
2015-05-29 19:22:11 +00:00
|
|
|
|
2016-01-06 01:00:51 +00:00
|
|
|
bottle :unneeded
|
2015-05-29 19:39:11 +00:00
|
|
|
|
2015-05-29 19:22:11 +00:00
|
|
|
resource "sample.apk" do
|
2016-09-24 15:45:48 +00:00
|
|
|
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk", :using => :nounzip
|
2015-05-29 19:22:11 +00:00
|
|
|
sha256 "bf3ec04631339538c8edb97ebbd5262c3962c5873a2df9022385156c775eb81f"
|
|
|
|
end
|
2011-09-11 11:53:57 +00:00
|
|
|
|
2013-08-07 05:15:31 +00:00
|
|
|
def install
|
2015-05-05 14:30:03 +00:00
|
|
|
libexec.install "apktool_#{version}.jar"
|
2015-05-29 19:22:11 +00:00
|
|
|
bin.write_jar_script libexec/"apktool_#{version}.jar", "apktool"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
resource("sample.apk").stage do
|
2016-08-08 05:26:21 +00:00
|
|
|
system bin/"apktool", "d", "robodemo-sample-1.0.1.apk"
|
|
|
|
system bin/"apktool", "b", "robodemo-sample-1.0.1"
|
2015-05-29 19:22:11 +00:00
|
|
|
end
|
2011-09-11 11:53:57 +00:00
|
|
|
end
|
|
|
|
end
|