#!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_NAME = pyenchant # try to detect libenchant package name LIBPACKAGENAME=$(shell dpkg -S `python3 -c 'from ctypes.util import find_library; print(find_library("enchant-2"))'` | grep -o ^libenchant[^:]* | head -n 1) ifneq (,$(findstring enchant,$(LIBPACKAGENAME))) LIBPACKAGENAME=libenchant-2-2 endif %: dh $@ --buildsystem=pybuild execute_before_dh_gencontrol: echo "shlibs:Depends=${LIBPACKAGENAME}" >> debian/python3-enchant.substvars