#!/usr/bin/make -f
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/vendor.mk

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- \
		-Drevno=$(DEB_VENDOR)/$(DEB_VERSION) \
		-Dprofile=release \
		-Dvaladoc=disabled

override_dh_auto_test:
	LIBGL_ALWAYS_SOFTWARE=true \
	WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 \
	localehelper LC_COLLATE=en_US.UTF-8 \
	dbus-run-session -- \
	xvfb-run -a -s "-screen 0 1024x768x24 -noreset" -e /proc/self/fd/2 \
	dh_auto_test --no-parallel -- \
		--verbose --timeout-multiplier 5

override_dh_makeshlibs:
	dh_makeshlibs --no-scripts
