Last active
August 29, 2015 14:16
-
-
Save creativepsyco/69b3b443503b2a3eb41b to your computer and use it in GitHub Desktop.
Apktool Brew 2.0.0rc4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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