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

export PYBUILD_NAME=libdnet

%:
	dh $@

fetch:
	./fetch_tarball.sh
	sed -i 's/language_level=3,/language_level=3, c_string_type=str, c_string_encoding=utf-8,/' libdnet/python/dnet.pyx

override_dh_auto_configure: fetch
	python3 -m pip config set global.break-system-packages true
	cd libdnet && ./configure --disable-static --disable-shared --with-python

override_dh_auto_build:
	cd libdnet && make
