2025-02-15 08:44:37 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2025-02-16 10:06:08 +01:00
|
|
|
export KBUILD_BUILD_TIMESTAMP = "@$(SOURCE_DATE_EPOCH)"
|
|
|
|
|
2025-02-15 08:44:37 +01:00
|
|
|
%:
|
|
|
|
dh ${@} --buildsystem=meson --with python3
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2025-02-16 10:07:22 +01:00
|
|
|
dh_auto_configure -- -Ddocs=man -Ddocs-build=true -Dpython=enabled -Dopenssl=enabled --default-library=both
|
2025-02-15 08:44:37 +01:00
|
|
|
|
|
|
|
execute_after_dh_auto_install:
|
2025-02-16 10:08:02 +01:00
|
|
|
# correcting python location
|
|
|
|
mv debian/tmp/usr/local/lib/python* debian/tmp/usr/lib
|
|
|
|
rm -rf debian/tmp/usr/local
|
|
|
|
|
2025-02-15 08:44:37 +01:00
|
|
|
# remove empty manpages
|
|
|
|
find debian/tmp/usr/share/man -type f -empty -exec rm -f {} +
|
|
|
|
|
|
|
|
# fix wrong-manual-section
|
|
|
|
sed -i -e 's| 9 | 2 |' debian/tmp/usr/share/man/*/*.2
|