From 27d1b0edd5b7030a118153ad455d77d000f52940 Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Sat, 10 Aug 2019 20:11:09 +0200 Subject: [PATCH] debuild: Support for ARM (e.g., Raspbian). --- debuild/Makefile | 9 ++++++++- debuild/debian/rules | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/debuild/Makefile b/debuild/Makefile index a205a78d3..ce66c9885 100644 --- a/debuild/Makefile +++ b/debuild/Makefile @@ -42,9 +42,13 @@ debsrc = purr-data_$(debversion).orig.tar.gz debdist = purr-data-$(debversion) # nw.js sdk +# NOTE: arm packages need some special-casing, since they are released +# separately, and the version numbers do not always match up. nwjsver = 0.24.4 nwjspkg = nwjs-sdk-v$(nwjsver)-linux -nwjs = $(nwjspkg)-ia32.tar.gz $(nwjspkg)-x64.tar.gz +nwjsver_arm = 0.24.5 +nwjspkg_arm = nwjs-sdk-v$(nwjsver_arm)-linux +nwjs = $(nwjspkg)-ia32.tar.gz $(nwjspkg)-x64.tar.gz $(nwjspkg_arm)-arm.tar.gz # Submodules (Gem, etc.). You can list them with 'make submodules'. #submodules = Gem externals/miXed $(addprefix l2ork_addons/, cwiid fftease3.0-32bit lyonpotpourri rtcmix-in-pd) @@ -110,5 +114,8 @@ $(debsrc): tar cfz $(debsrc) $(debdist) rm -rf $(debdist) +debian/nwjs/$(nwjspkg_arm)-arm.tar.gz: + mkdir -p debian/nwjs && cd debian/nwjs && wget https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/v$(nwjsver_arm)/$(notdir $@) + debian/nwjs/$(nwjspkg)-%.tar.gz: mkdir -p debian/nwjs && cd debian/nwjs && wget http://dl.nwjs.io/v$(nwjsver)/$(notdir $@) diff --git a/debuild/debian/rules b/debuild/debian/rules index cd384c3be..d2d935822 100755 --- a/debuild/debian/rules +++ b/debuild/debian/rules @@ -7,7 +7,10 @@ nwjsver = 0.24.4 nwjspkg = nwjs-sdk-v$(nwjsver)-linux -ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","amd64") +ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","armhf") +arch = arm +nwjsver = 0.24.5 +else ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","amd64") arch = x64 else arch = ia32 -- GitLab