#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- \
	    --libdir=lib/$(DEB_HOST_MULTIARCH)/dino-im \
	    -Dplugindir=plugins \
	    -Dset-install-rpath=true

override_dh_auto_test:

execute_before_dh_auto_build:
	dpkg-parsechangelog --show-field Version > VERSION

override_dh_shlibdeps:
	dh_shlibdeps -- -l$(CURDIR)/debian/dino-im/usr/lib/$(DEB_HOST_MULTIARCH)/dino-im
