1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
export DH_VERBOSE = 1
include /usr/share/dpkg/pkg-info.mk
# Suppress __pycache__ pollution
export PYTHONDONTWRITEBYTECODE = 1
DEB_URANIUM_DIR ?= /usr/share/uranium
%:
dh $@ --buildsystem=cmake --with python3
override_dh_auto_configure:
dh_auto_configure -- -DURANIUM_DIR=$(DEB_URANIUM_DIR) -DCURA_VERSION=$(DEB_VERSION_UPSTREAM)
override_dh_clean:
dh_clean
# Leftovers from pytest
rm -rf .cache
find -name __pycache__ -print0 | xargs -0 rm -rf
override_dh_auto_test:
tmpdir=$(mktemp -d); HOME=$$tmpdir dh_auto_test; rm -rf $$tmpdir
|