apktool: use resource
This commit is contained in:
parent
2d9f880db9
commit
5149cf6ab3
1 changed files with 6 additions and 10 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue