#!/usr/bin/make -f
# -*- makefile -*-

NULL =

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

DHFLAGS=--buildsystem=meson

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

%:
	dh $@ $(DHFLAGS)

override_dh_auto_configure:
	dh_auto_configure -- -Dgtk=3

override_dh_shlibdeps:
	dh_shlibdeps -- -xlibgtk2.0-0

override_dh_install:
	mv debian/tmp/usr/share/doc/appmenu-gtk-module debian/tmp/usr/share/doc/appmenu-gtk3-module
	rm debian/tmp/usr/share/licenses/ -Rfv
	dh_install

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
