#!/usr/bin/make -f # resolve if release is experimental EXP_RELEASE = $(filter experimental% UNRELEASED,\ $(shell dpkg-parsechangelog -S Distribution)) # relax symbols check when targeting experimental export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(EXP_RELEASE),0,1) %: dh $@ --with pkgkde_symbolshelper # Let d-shlibs calculate development package dependencies # and handle shared library install execute_after_dh_install: d-shlibmove --commit \ --devunversioned \ --exclude-la \ --multiarch \ --movedev "debian/tmp/usr/include/*" usr/include/ \ --movedev "debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*" \ usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so