File debian.rules of Package kopano-webapp-buildtools

#!/usr/bin/make -f
INSTDIR=$(CURDIR)/debian/kopano-webapp-buildtools
TOOLSDIR=/usr/share/kopano-webapp-buildtools
WA=$(WADEB)$(WABASE)

JDK='openjdk-7-jdk | openjdk-8-jdk | openjdk-11-jdk'
# Hack, since Univention 4.3 has a problem with 'openjdk-7-jdk | openjdk-8-jdk'
# Additionally Univention is not distiguishable from debian also do the same for 
ifeq ($(shell grep -Eq 'stretch' /etc/os-release && echo yes),yes)
       JDK='openjdk-8-jdk'
endif

export DH_VERBOSE=1
%:
	dh $@

override_dh_auto_install:
	install -d -m 755 $(INSTDIR)$(TOOLSDIR)
	cd tools && ant && cd ../
	cp -rf server tools $(INSTDIR)$(TOOLSDIR)/

override_dh_auto_clean:

override_dh_auto_build:

override_dh_auto_test:

override_dh_gencontrol:
	dh_gencontrol -- -Vjdk:Depends=$(JDK)

openSUSE Build Service is sponsored by