homebrew-core/Formula/apktool.rb

31 lines
1.2 KiB
Ruby
Raw Normal View History

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.0.2.jar", :using => :nounzip
sha256 "c15cf1b87486d83dbc9e5ce64a03178a64eeeecf62cf08637193ba759f61419b"
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
resource "sample.apk" do
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk", :using => :nounzip
sha256 "bf3ec04631339538c8edb97ebbd5262c3962c5873a2df9022385156c775eb81f"
end
2013-08-07 05:15:31 +00:00
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