1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
# makes the tests pass in Ubuntu
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
endif
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@ --with pkgkde_symbolshelper
override_dh_install:
# re-arrange files in doc:pkg
mv debian/tmp/usr/share/doc/maliit-framework-doc debian/tmp/usr/share/doc/maliit-framework/html
rm debian/tmp/usr/share/doc/maliit-framework/LICENSE.LGPL*
# drop build path from generated .html files
cd debian/tmp/usr/share/doc/maliit-framework/html && \
find . -type f | while read file; do \
sed -r -e 's@$(CURDIR)@@g' -i $$file; \
done
# finally, run dh_install
dh_install
override_dh_installexamples:
dh_installexamples
# drop Vcs control files from doc:pkg
-find debian/maliit-framework-doc/ -name .gitignore -delete
override_dh_auto_test:
xvfb-run -a dh_auto_test --no-parallel
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|