#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

%:
	dh $@

execute_after_dh_install-arch:
	cd debian/epiphany-browser/usr/bin \
		&& mv epiphany-browser.sh epiphany-browser

override_dh_auto_test:
	dbus-run-session -- \
	xvfb-run -a -s "-screen 0 1024x768x24 -noreset" -e /proc/self/fd/2 \
	dh_auto_test

# Fixes blhc failure as seen in Salsa CI
# We already build in the build step so there shouldn't be
# a reason for meson to need to rebuild in the install step
override_dh_auto_install:
	dh_auto_install -- --no-rebuild
