From 8a66653a345ec04dc4af7c530bf110e63aafd94d Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Fri, 2 Apr 2021 15:04:20 +0200
Subject: [PATCH] debuild: Fix the nw.js sources for the arm64 architecture.

---
 debuild/debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debuild/debian/rules b/debuild/debian/rules
index 915afeffa..5cf265d2b 100755
--- a/debuild/debian/rules
+++ b/debuild/debian/rules
@@ -10,6 +10,9 @@ nwjspkg = nwjs-sdk-v$(nwjsver)-linux
 ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","armhf")
 arch = arm
 nwjsver = 0.27.6
+else ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","arm64")
+arch = arm
+nwjsver = 0.27.6
 else ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","amd64")
 arch = x64
 else
@@ -37,6 +40,7 @@ override_dh_auto_test:
 
 override_dh_auto_build:
 # Copy the nw.js sources to where purr-data wants them.
+	@echo "DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)"
 	tar -xf debian/nwjs/$(nwjspkg)-$(arch).tar.gz && rm -rf pd/nw/nw && mv $(nwjspkg)-$(arch) pd/nw/nw
 	cd l2ork_addons && (export V=0 inst_dir=$(prefix); ./tar_em_up.sh -Bn)
 	make check prefix=$(prefix)
-- 
GitLab