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"
|
2015-10-14 01:51:03 +00:00
|
|
|
url "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.2.jar", :using => :nounzip
|
|
|
|
sha256 "c15cf1b87486d83dbc9e5ce64a03178a64eeeecf62cf08637193ba759f61419b"
|
2015-05-29 19:22:11 +00:00
|
|
|
|
2015-05-29 19:39:11 +00:00
|
|
|
bottle do
|
2015-09-23 20:36:10 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-10-14 10:18:45 +00:00
|
|
|
sha256 "c90dd13af012a5921977bf100bd53f68cc1b29ca6a5eac25af731bc0a47a6b89" => :el_capitan
|
|
|
|
sha256 "ffc20fe7e42429a059198a34aa267b03901c416b4a8c5729a565d35637111d12" => :yosemite
|
|
|
|
sha256 "17733334df7798014a01a6b59cc484544fd42bce63bd242f26561831619286d1" => :mavericks
|
2015-05-29 19:39:11 +00:00
|
|
|
end
|
|
|
|
|
2015-05-29 19:22:11 +00:00
|
|
|
resource "sample.apk" do
|
|
|
|
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk", :using => :nounzip
|
|
|
|
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
|
|
|
|
system "#{bin}/apktool", "d", "robodemo-sample-1.0.1.apk"
|
|
|
|
system "#{bin}/apktool", "b", "robodemo-sample-1.0.1"
|
|
|
|
end
|
2011-09-11 11:53:57 +00:00
|
|
|
end
|
|
|
|
end
|