pkg:setup make DESTDIR=${PKG_DEST} install CC=${PKG_TARG}-clang PREFIX=${PKG_TAPF} CFLAGS=${CFLAGS} require "rexml/document" pom_xml = REXML::Document.new(File.new("pom.xml")) jar_version = REXML::XPath.first(pom_xml, "string(/pom:project/pom:version)", "pom" => "http://maven.apache.org/POM/4.0.0") mvn clean install libexec.install Dir["nailgun-server/target/*.jar"] bin.write_jar_script libexec/"nailgun-server-#{jar_version}.jar", "ng-server", "-server"