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

export PYBUILD_NAME=django-captcha

%:
	dh $@ --with python3 --buildsystem=pybuild

.PHONY: override_dh_auto_test
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="cd testproject && {interpreter} manage.py test captcha"

override_dh_install:
	dh_install

	find debian/python3-django-captcha -name Vera.ttf -exec \
		ln -sf /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf {} \;;
