diff options
| author | Adam Vandenberg | 2013-08-06 22:15:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:27 -0700 |
| commit | 212f2843c5264fe17995ef7d2aafea00e7728e10 (patch) | |
| tree | 5b30a75e49f6be1a0b0bd0c978b6e8bbbfccbe62 /Library | |
| parent | da69e667fbec0ee0835130e952d5dddd6fdb399e (diff) | |
| download | homebrew-212f2843c5264fe17995ef7d2aafea00e7728e10.tar.bz2 | |
apktool: use resource
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/apktool.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/apktool.rb b/Library/Formula/apktool.rb index 986f231af..fe2712f6e 100644 --- a/Library/Formula/apktool.rb +++ b/Library/Formula/apktool.rb @@ -1,21 +1,17 @@ require 'formula' -class ApktoolExecutables < Formula - url 'https://android-apktool.googlecode.com/files/apktool-install-macosx-r05-ibot.tar.bz2' - sha1 'c2fb262760ccd27530e58ccc4bbef4d4a7b0ab39' -end - class Apktool < Formula homepage 'http://android-apktool.googlecode.com/' url 'https://android-apktool.googlecode.com/files/apktool1.5.2.tar.bz2' sha1 '2dd828cf79467730c7406aa918f1da1bd21aaec8' - def install - libexec.install 'apktool.jar' + resource 'exes' do + url 'https://android-apktool.googlecode.com/files/apktool-install-macosx-r05-ibot.tar.bz2' + sha1 'c2fb262760ccd27530e58ccc4bbef4d4a7b0ab39' + end - ApktoolExecutables.new.brew do - libexec.install 'aapt', 'apktool' - end + def install + libexec.install 'apktool.jar', resource('exes') # Make apktool look for jar and aapkt in libexec inreplace "#{libexec}/apktool" do |s| |
