debian swirl logo

Back to the packages list maven-ant-helper

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ')
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar xalan2
DEB_ANT_BUILD_TARGET := package
DEB_ANT_BUILDFILE    := ./debian/build.xml
DEB_ANT_ARGS         := -DartifactId=$(PACKAGE) -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -propertyfile debian/build.properties

binary-post-install/$(PACKAGE)::
		dh_install build/$(PACKAGE)-$(VERSION).jar usr/share/java
		dh_link usr/share/java/$(PACKAGE)-$(VERSION).jar usr/share/java/$(PACKAGE).jar
		dh_installdirs -A usr/share/maven-ant-helper
		dh_install maven-build.xml usr/share/maven-ant-helper
		dh_install maven-defaults.properties usr/share/maven-ant-helper
		dh_install manifest.mf usr/share/maven-ant-helper
		dh_install bootstrap usr/share/maven-ant-helper

Builds:

maven-ant-helper
helper scripts for building maven components with ant