Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save creativepsyco/69b3b443503b2a3eb41b to your computer and use it in GitHub Desktop.
Save creativepsyco/69b3b443503b2a3eb41b to your computer and use it in GitHub Desktop.
Apktool Brew 2.0.0rc4
require 'formula'
class Apktool < Formula
homepage 'http://android-apktool.googlecode.com/'
url 'https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0rc4.jar'
sha1 '61123bcc472fa76907d405d82afda1c6e40c46bf'
resource 'exes' do
url 'https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/osx/apktool'
sha1 '508f031c81b42386ddc5fff304fee3ae11fd765b'
end
def install
libexec.install 'apktool_2.0.0rc4.jar', resource('exes')
# Make apktool look for jar and aapkt in libexec
inreplace "#{libexec}/apktool" do |s|
s.gsub! /^libdir=.*$/, "libdir=\"#{libexec}\""
s.gsub! "PATH=$PATH:`pwd`;", "PATH=$PATH:#{libexec};"
end
bin.install_symlink libexec/'apktool'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment