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['*']
|
|
|
|
|
2014-05-31 15:00:24 +00:00
|
|
|
Dir.glob("#{libexec}/*.sh") do |script|
|
2013-05-16 08:17:40 +00:00
|
|
|
bin.install_symlink script => File.basename(script, '.sh')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|