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 28 29
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := ant-nodeps bcel commons-cli commons-lang
DEB_ANT_BUILD_TARGET := package
DEB_ANT_BUILDFILE := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dbin.package=$(PACKAGE) -Dversion=$(VERSION) -Dpom.file=debian/pom.xml
get-orig-source:
-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack
binary-post-install/$(PACKAGE)::
mh_installpoms -p$(PACKAGE)
mh_installjar -p$(PACKAGE) -l --usj-name=clirr debian/pom.xml build/clirr-core-$(VERSION).jar
mkdir -p debian/$(PACKAGE)/usr/share/clirr
install -m 755 debian/wrappers/clirr debian/$(PACKAGE)/usr/share/clirr
dh_link -p$(PACKAGE) usr/share/clirr/clirr usr/bin/clirr
clean::
mh_clean
-rm -rf debian/tmp
get-orig-pom:
wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/net/sf/clirr/clirr-core/$(VERSION)/clirr-core-$(VERSION).pom
|