debian swirl logo

Back to the packages list libmiglayout-java

#!/usr/bin/make -f

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

JAVA_HOME := /usr/lib/jvm/default-java

binary-install/libmiglayout-java::
	# Create a all in one jar to ensure the backward compatibility
		mkdir target/classes
		cp -R core/target/classes/*    target/classes
		cp -R swing/target/classes/*   target/classes
		cp -R swt/target/classes/*     target/classes
		cp -R ideutil/target/classes/* target/classes
		jar -cf target/miglayout.jar -C target/classes/ .
		dh_install -plibmiglayout-java target/miglayout.jar usr/share/java
		dh_link -plibmiglayout-java /usr/share/java/miglayout.jar /usr/share/java/miglayout-$(DEB_UPSTREAM_VERSION).jar

get-orig-source:
		-uscan --upstream-version $(DEB_UPSTREAM_VERSION) --rename

Builds:

libmiglayout-java
java layout manager