| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export KBUILD_BUILD_TIMESTAMP = "@$(SOURCE_DATE_EPOCH)" |
| 6 |
|
| 7 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 8 |
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH} |
| 9 |
endif |
| 10 |
|
| 11 |
%: |
| 12 |
dh ${@} --buildsystem=meson --with python3 |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure -- -Ddocs=man -Ddocs-build=true -Dpython=enabled -Dopenssl=enabled --default-library=both |
| 16 |
|
| 17 |
execute_after_dh_auto_install: |
| 18 |
# remove empty manpages |
| 19 |
find debian/tmp/usr/share/man -type f -empty -exec rm -f {} + |
| 20 |
|
| 21 |
# fix wrong-manual-section |
| 22 |
sed -i -e 's| 9 | 2 |' debian/tmp/usr/share/man/*/*.2 |
| 23 |
|
| 24 |
override_dh_auto_test: |
| 25 |
# disabled |