#!/usr/bin/make -f #include /usr/share/cdbs/1/rules/debhelper.mk # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_builddeb: dh_builddeb -- -Zgzip override_dh_install: custom-files dh_install # Build architecture-dependent files here. custom-files: ifeq ($(DEB_BUILD_ARCH), i386) cp jdk-9-linux-x86.tar.gz ./oracle-java9-installer.install-files/var/cache/oracle-jdk9-installer/jdk-9-linux-x86.tar.gz endif ifeq ($(DEB_BUILD_ARCH), amd64) cp jdk-9-linux-x64.tar.gz ./oracle-java9-installer.install-files/var/cache/oracle-jdk9-installer/jdk-9-linux-x64.tar.gz endif