2013-05-16 08:17:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dex2jar < Formula
|
|
|
|
homepage 'https://code.google.com/p/dex2jar/'
|
2013-07-12 22:04:37 +00:00
|
|
|
url 'https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip'
|
|
|
|
sha1 'cc9366836d576ce22a18de8f214368636db9fcba'
|
2013-05-16 08:17:40 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Remove Windows scripts
|
|
|
|
rm_rf Dir['*.bat']
|
|
|
|
|
|
|
|
# Install files
|
|
|
|
prefix.install_metafiles
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
|
|
|
Dir["#{libexec}/*.sh"].each do |script|
|
|
|
|
bin.install_symlink script => File.basename(script, '.sh')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|