#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --bindir=\$${prefix}/games --localstatedir=/var/games

execute_after_dh_fixperms-arch:
	chown root:games $(CURDIR)/debian/lbreakouthd/usr/games/lbreakouthd
	chmod g+s $(CURDIR)/debian/lbreakouthd/usr/games/lbreakouthd

execute_after_dh_install-indep:
	rm -f $(CURDIR)/debian/lbreakouthd-data/usr/share/games/lbreakouthd/themes/Standard/SIL-OFL.txt

execute_after_dh_install-arch:
	mkdir -p $(CURDIR)/debian/lbreakouthd/usr/share/games/lbreakouthd
	mv $(CURDIR)/debian/lbreakouthd/var/games/lbreakouthd.hscr $(CURDIR)/debian/lbreakouthd/usr/share/games/lbreakouthd/lbreakouthd.hscr.blank

override_dh_gencontrol-indep:
	dh_gencontrol -plbreakout2 -- -v2.6.5+really$(DEB_VERSION)
	dh_gencontrol -i --remaining-packages
