blob: f65481588696bce6e1dd6185d7364f7d4859d313 (
plain)
1
2
3
4
5
6
7
8
|
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"
|