Don't build arch:armel packages
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Tue, 16 Aug 2022 12:30:51 +0000 (14:30 +0200)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Tue, 16 Aug 2022 12:31:09 +0000 (14:31 +0200)
debian/control
debian/rules

index 1a9010f83efb01a0834e828c0f75e98fccb8e674..c541653fe79c1cf45b37083d0f243ba067356e1c 100644 (file)
@@ -30,6 +30,7 @@ Vcs-Git: https://salsa.debian.org/multimedia-team/juce.git
 Vcs-Browser: https://salsa.debian.org/multimedia-team/juce
 
 Package: juce-modules-source
+# Via debian/rules, it's actually: !armel
 Architecture: any
 Multi-Arch: same
 Depends:
@@ -91,6 +92,7 @@ Description: Jules' Utility Class Extensions (platform independent module source
  (which will force this package to be installed as well).
 
 Package: juce-tools
+# Via debian/rules, it's actually: !armel
 Architecture: any
 Multi-Arch: foreign
 Depends:
index 73e6d280ded72afac4802308c6d01468c760ca1b..5c71076282a7f55209aaaffee49aa01a54c4b2bc 100755 (executable)
@@ -42,11 +42,17 @@ ifneq ($(strip $(filter $(DEB_HOST_ARCH), mipsel mips64el)),)
 endif
 
 
+ifneq (,$(filter armel,$(DEB_HOST_ARCH)))
+BUILD_PACKAGES = -Njuce-modules-source -Njuce-tools
+endif
+
+
+
 # Debian's Projucer is GPL
 DEB_CPPFLAGS_MAINT_APPEND += -DJUCER_ENABLE_GPL_MODE=1
 
 %:
-       dh $@
+       dh $@ $(BUILD_PACKAGES)
 
 
 override_dh_auto_configure:
@@ -57,12 +63,16 @@ override_dh_auto_configure:
                $(empty)
 
 override_dh_auto_build-arch:
+ifneq (,$(filter armel,$(DEB_HOST_ARCH)))
        dh_auto_build -- Projucer juce_lv2_helper
+endif
        cp $(CURDIR)/examples/DemoRunner/Builds/iOS/DemoRunner/Images.xcassets/AppIcon.appiconset/Icon.png \
                $(DEBIAN_BUILD_ARTIFACTS)/juce.png
 
 override_dh_auto_build-indep:
+ifneq (,$(filter armel,$(DEB_HOST_ARCH)))
        dh_auto_build -- juce_lv2_helper
+endif
        mkdir -p docs/doxygen/build
        cp docs/JUCE*.md docs/CMake*.md docs/doxygen/build/
        make -C docs/doxygen