summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: b28f7fa4a76a5d7f52928fbc1bda0ef2a2da5a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
	if [ -e debian/tmp/usr/local/lib ]; \
	then \
		mv debian/tmp/usr/local/lib/python* debian/tmp/usr/lib; \
		rm -rf debian/tmp/usr/local; \
	fi

	# 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