1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
# Use all hardening features
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Link only with needed libraries
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# For testing, it's necessary to have a UTF-8 enabled locale available,
# otherwise, the tests regarding the translations are failing.
override_dh_auto_test:
mkdir -p $(CURDIR)/debian/tmpdir/locale
localedef -i de_DE -f UTF-8 $(CURDIR)/debian/tmpdir/locale/de_DE.UTF-8
LOCPATH=$(CURDIR)/debian/tmpdir/locale LANG=de LC_ALL=de_DE.UTF-8 dh_auto_test
# Remove the tmpdir for the locale, see above.
override_dh_auto_clean:
dh_auto_clean
rm -rf debian/tmpdir
%:
dh $@ --with autoreconf,bash-completion
|