require 'formula' class Trang < Formula desc "XML schema converter" homepage 'http://code.google.com/p/jing-trang/' url 'https://jing-trang.googlecode.com/files/trang-20091111.zip' sha1 'b5f1fd4b63f347c8d0575bd1922f94316240cb29' def install libexec.install Dir["*"] bin.write_jar_script libexec/'trang.jar', 'trang' end end