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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_LDFLAGS_MAINT_APPEND =
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CONFIGURE_FLAGS = \
--with-python=/usr/bin/python3
ifeq (,$(filter noinsttest,$(DEB_BUILD_PROFILES)))
CONFIGURE_FLAGS += --enable-installed-tests
else
CONFIGURE_FLAGS += --disable-installed-tests
endif
%:
dh $@ --with autoreconf,python3
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
.PHONY: override_dh_autoreconf
override_dh_autoreconf:
touch ChangeLog # for building on the git
dh_autoreconf
.PHONY: override_dh_install
override_dh_install:
dh_install
dh_apparmor --profile-name=usr.lib.ibus.ibus-engine-hangul -pibus-hangul
dh_apparmor --profile-name=usr.lib.ibus.ibus-setup-hangul -pibus-hangul
.PHONY: override_dh_auto_test
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
env DISABLE_GUI_TESTS=ibus-hangul \
dh_auto_test
endif
|