#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--bindir=games \
		-Dtheme_kde=false \
		-Dtheme_pysol_path=/usr/share/games/pysol

override_dh_fixperms:
	dh_fixperms -X/usr/games/sol

override_dh_makeshlibs:
	dh_makeshlibs -p aisleriot --no-act
	dh_makeshlibs --remaining-packages

# Build fails if it tries to strip the .go files
# https://bugs.debian.org/907061
override_dh_strip:
	dh_strip -X.go

# Skip similar build failure
override_dh_dwz:
	dh_dwz -X.go
