diff --git a/debian/rules b/debian/rules index 012c142..9b2ba05 100755 --- a/debian/rules +++ b/debian/rules @@ -6,7 +6,8 @@ TAR := ../$(NAME)_$(VERSION).orig.tar.gz TARDFSG := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz -export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-$(DEB_HOST_ARCH) export PATH:=$(JAVA_HOME)/bin:$(PATH) # NOTE: jutils is explicitly included here (without a depends in our control