From e96790e6cdfed20e1fd3b77011c6e75e70cd4624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 27 Nov 2021 11:42:07 +0100 Subject: Enable the apport option on Ubuntu --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index acbfebd..a772218 100755 --- a/debian/rules +++ b/debian/rules @@ -4,13 +4,18 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w)) +#Enable the apport option when building of Ubuntu +ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) + APPORT = -Dinstall-apport-hook=true +endif + %: dh $@ --buildsystem=meson --with gnome override_dh_auto_configure: dh_auto_configure -- \ --libexec=/usr/libexec \ - -Dunity-support=true + -Dunity-support=true $(APPORT) override_dh_gnome_clean: dh_gnome_clean --no-control -- cgit v1.2.3