diff options
| author | Johan LieseĢn | 2011-09-11 13:53:57 +0200 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-23 19:27:26 -0700 |
| commit | 666c556b0244b73e52a0d5afb7eee719a7af83c8 (patch) | |
| tree | 4a8b9918c4a748ce956d52121d38f736dd34f195 /Library/Formula/apktool.rb | |
| parent | d05616a90de61a6bc19c56c4e543083a060a55ad (diff) | |
| download | homebrew-666c556b0244b73e52a0d5afb7eee719a7af83c8.tar.bz2 | |
New Formula: apktool
Apktool is a tool for reengineering 3rd party, closed, binary Android apps.
Closes #7662.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/apktool.rb')
| -rw-r--r-- | Library/Formula/apktool.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/apktool.rb b/Library/Formula/apktool.rb new file mode 100644 index 000000000..d96cbfbb3 --- /dev/null +++ b/Library/Formula/apktool.rb @@ -0,0 +1,22 @@ +require 'formula' + +class ApktoolExecutables < Formula + url 'http://android-apktool.googlecode.com/files/apktool-install-macosx-r04-brut1.tar.bz2' + sha1 'f3e7376225916d3fb73df618ec4e5f5c00474e0c' +end + +class Apktool < Formula + url 'http://android-apktool.googlecode.com/files/apktool1.4.1.tar.bz2' + sha1 '4e5f709e5f86c3ef72dbc32041d1aebd957098b4' + homepage 'http://android-apktool.googlecode.com/' + + def install + libexec.install 'apktool.jar' + + ApktoolExecutables.new.brew do |f| + # Make apktool look for jar in libexec + inreplace 'apktool', /^libdir=.*$/, "libdir=\"#{libexec}\"" + bin.install ['aapt', 'apktool'] + end + end +end |
