| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=meson |
| 8 |
|
| 9 |
|
| 10 |
%-indep: |
| 11 |
dh $@ --buildsystem=none |
| 12 |
|
| 13 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 14 |
test := true |
| 15 |
else |
| 16 |
test := false |
| 17 |
endif |
| 18 |
|
| 19 |
override_dh_auto_configure: |
| 20 |
dh_auto_configure -- \ |
| 21 |
-Db_lto=true \ |
| 22 |
-Ddev_build=$(test) \ |
| 23 |
-Denable_opt=false |
| 24 |
|
| 25 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
execute_after_dh_auto_build-indep: |
| 30 |
mkdocs build |
| 31 |
find site -type f -exec sed -i 's|<link [^>]*href="http[^>]*>||g' '{}' ';' |
| 32 |
|
| 33 |
|
| 34 |
execute_after_dh_installdocs-indep: |
| 35 |
dh_mkdocs --indep #--theme-package=mkdocs-material |
| 36 |
endif |