1
0
Fork 0
libnvme/debian/rules
Daniel Baumann e20f7a8321
Workarounding changes for wrong python prefix.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-16 10:08:02 +01:00

20 lines
582 B
Makefile
Executable file

#!/usr/bin/make -f
export KBUILD_BUILD_TIMESTAMP = "@$(SOURCE_DATE_EPOCH)"
%:
dh ${@} --buildsystem=meson --with python3
override_dh_auto_configure:
dh_auto_configure -- -Ddocs=man -Ddocs-build=true -Dpython=enabled -Dopenssl=enabled --default-library=both
execute_after_dh_auto_install:
# correcting python location
mv debian/tmp/usr/local/lib/python* debian/tmp/usr/lib
rm -rf debian/tmp/usr/local
# 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