#!/usr/bin/make -f

export PYBUILD_NAME=orangeassassin
export PYBUILD_DESTDIR_python3=debian/orangeassassin/

# 20171028: Testsuite is failing at the moment, do not run it.
# Upstream is aware of this issue.
export PYBUILD_DISABLE=test

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

override_dh_auto_install:
	dh_auto_install
	mv $(PYBUILD_DESTDIR_python3)/usr/bin/oad.py $(PYBUILD_DESTDIR_python3)/usr/bin/oa-oad
	mv $(PYBUILD_DESTDIR_python3)/usr/bin/match.py $(PYBUILD_DESTDIR_python3)/usr/bin/oa-compile
	mv $(PYBUILD_DESTDIR_python3)/usr/bin/compile.py $(PYBUILD_DESTDIR_python3)/usr/bin/oa-match
