#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=eduvpn-client


override_dh_auto_install:
	dh_auto_install
	# we remove some things since we add them to the common package
	rm -rf debian/python3-eduvpn-client/usr/share
	# and we move the eduvpn-client script to the eduvpn-client package
	mkdir -p debian/eduvpn-client/usr/bin
	mkdir -p debian/letsconnect-client/usr/bin
	mv debian/python3-eduvpn-client/usr/bin/letsconnect-gui debian/letsconnect-client/usr/bin
	mv debian/python3-eduvpn-client/usr/bin/letsconnect-cli debian/letsconnect-client/usr/bin
	mv debian/python3-eduvpn-client/usr/bin/eduvpn-gui debian/eduvpn-client/usr/bin

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


# we disable test for now, pybuild runs test from build folder while data_files
# are not copied to there
override_dh_auto_test:


override_dh_builddeb:
	dh_builddeb -- -Zxz
