#!/usr/bin/make -f

export DH_OPTIONS

# Read in distr-specific variables.
ifneq (,$(filter astrase,$(DEB_BUILD_PROFILES)))
ASTRA_SUFFIX=ossn
ifneq (,$(filter astrabuster,$(DEB_BUILD_PROFILES)))
ASTRA_SUFFIX=ossn-buster
endif
else
ASTRA_SUFFIX=oson
ifneq (,$(filter astrabuster,$(DEB_BUILD_PROFILES)))
ASTRA_SUFFIX=oson-buster
endif
endif
include debian/scripts/vars.$(ASTRA_SUFFIX)

%:
	dh $@

override_dh_gencontrol:
#	dh_gencontrol -i $(DEBHELPER_OPTIONS) -Nfonts-pt-sans -Nfonts-pt-serif -Nfonts-pt-mono -Nfonts-pt-astra -Nfonts-pt-root-ui
	dh_gencontrol -pfonts-pt -- -VF:Fly-Fonts-Main-Depends=$(FLY_FONTS_DEPS_MAIN)
	dh_gencontrol -pfonts-pt-sans -- -v2.005
	dh_gencontrol -pfonts-pt-serif -- -v1.002
	dh_gencontrol -pfonts-pt-mono -- -v1.003
	dh_gencontrol -pfonts-pt-astra -- -v1.003
	dh_gencontrol -pfonts-pt-astra-fact -- -v1.001
	dh_gencontrol -pfonts-pt-root-ui -- -v1.001
