1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
POM_VERSION := 2.6
MAVEN_REPO := http://repository.sonatype.org/service/local/repositories/central/content
DEB_BUILDDIR := build
JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := jxlall
DEB_ANT_CLEAN_TARGET := init clean
binary-post-install/libjexcelapi-java::
mh_installpoms -plibjexcelapi-java
mh_installjar -plibjexcelapi-java -l debian/pom.xml jxl.jar
clean::
-rm -rf debian/tmp
get-orig-source:
uscan --upstream-version 0 --rename
get-orig-pom:
wget -O debian/pom.xml $(MAVEN_REPO)/net/sourceforge/jexcelapi/jxl/$(POM_VERSION)/jxl-$(POM_VERSION).pom
perl -p -i -e 's/<version>$(POM_VERSION)/<version>$(DEB_UPSTREAM_VERSION)/' debian/pom.xml
|