2019-11-17 05:15:40 -05:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2020-01-04 02:37:55 -05:00
|
|
|
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
2019-11-17 05:15:40 -05:00
|
|
|
# see FEATURE AREAS in dpkg-buildflags(1)
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
|
2020-01-27 23:24:01 -05:00
|
|
|
export PYBUILD_NAME=notcurses
|
|
|
|
|
2019-11-17 05:15:40 -05:00
|
|
|
%:
|
|
|
|
dh $@ --buildsystem=cmake
|
|
|
|
|
|
|
|
# dh_auto_test -O--buildsystem=cmake -O--no-parallel
|
|
|
|
# Don't try to run ncurses tests
|
|
|
|
override_dh_auto_test:
|
|
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
|
|
cd obj-x86_64-linux-gnu && env -u TERM make test
|
|
|
|
endif
|
2020-01-27 23:24:01 -05:00
|
|
|
|
|
|
|
# support building a Python debugging package
|
|
|
|
override_dh_strip:
|
|
|
|
dh_strip -ppython3-foo --dbg-package=python3-foo-dbg
|