File: rules

package info (click to toggle)
truffle 0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,232 kB
  • ctags: 2,430
  • sloc: java: 10,264; xml: 31; makefile: 21
file content (27 lines) | stat: -rwxr-xr-x 854 bytes parent folder | download | duplicates (2)
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/dpkg/default.mk
%:
	dh $@ --with javahelper

override_jh_build:
	jh_build --javacopts="-source 7" --javadoc-opts="-source 7"

override_jh_installlibs:
	mh_installpoms -plib$(DEB_SOURCE)-java
	mh_installjar  -plib$(DEB_SOURCE)-java -l debian/pom.xml $(DEB_SOURCE).jar

override_dh_clean:
	dh_clean
	mh_clean

V := $(DEB_VERSION_UPSTREAM)
MAVEN_ROOT := https://repo1.maven.org/maven2/com/oracle/$(DEB_SOURCE)

get-orig-pom:
	curl -L -o debian/pom.xml $(MAVEN_ROOT)/$(V)/$(DEB_SOURCE)-$(V).pom
get-orig-source:
	curl -L -O $(MAVEN_ROOT)/$(V)/$(DEB_SOURCE)-$(V)-sources.jar
	unzip -d $(DEB_SOURCE)-$(V).orig $(DEB_SOURCE)-$(V)-sources.jar
	GZIP=--best tar --numeric-owner --owner 0 --group 0 -zcf \
		$(DEB_SOURCE)_$(V).orig.tar.gz $(DEB_SOURCE)-$(V).orig
	-rm -rf $(DEB_SOURCE)-$(V).orig $(DEB_SOURCE)-$(V)-sources.jar