#!/usr/bin/make -f #include /usr/share/cdbs/1/rules/debhelper.mk %: dh $@ override_dh_install: custom-files dh_install # Build architecture-dependent files here. custom-files: ifeq ($(DEB_BUILD_ARCH), i386) cp jdk-8-linux-i586.tar.gz ./oracle-java8-installer.install-files/var/cache/oracle-jdk8-installer/jdk-8-linux-i586.tar.gz endif ifeq ($(DEB_BUILD_ARCH), amd64) cp jdk-8-linux-x64.tar.gz ./oracle-java8-installer.install-files/var/cache/oracle-jdk8-installer/jdk-8-linux-x64.tar.gz endif