homebrew-core/Formula/apktool.rb

26 lines
893 B
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"
2016-01-05 06:02:01 +00:00
url "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.3.jar", :using => :nounzip
sha256 "ceca3e49bfc697c918aaff160c28244f27a2c1c741af62a70e1558a066a16dd3"
2016-01-06 01:00:51 +00:00
bottle :unneeded
2015-05-29 19:39: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
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