#!/usr/bin/make -f

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

NULL  =
PKD   = $(word 2, abspath $(dir $(MAKEFILE_LIST)))
PKG   = $(DEB_SOURCE)
UVER  = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
DTYPE = +repack1
VER  ?= $(subst $(DTYPE),,$(UVER))

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

# disabling test engine (as it is driven by Python2.7,
# about to be removed from Debian)
override_dh_auto_test:

override_dh_missing:
	dh_missing --fail-missing

# MX don't need no stinkin' dbgsyms
override_dh_strip:
	dh_strip --no-automatic-dbgsym

get-orig-source:
	uscan --no-conf --force-download --rename --download-version $(VER) --repack --compression xz --destdir=.. --verbose
