#!/usr/bin/make -f # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+all ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) CONFIGURE_FLAGS += -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON CONFIGURE_FLAGS += -DDISTRIBUTOR_LOGO="/usr/share/pixmaps/ubuntu-logo-text.svg" CONFIGURE_FLAGS += -DDARK_MODE_DISTRIBUTOR_LOGO="/usr/share/pixmaps/ubuntu-logo-text-dark.svg" else CONFIGURE_FLAGS += -DENABLE_UBUNTU_ACCOUNTSSERVICE=OFF CONFIGURE_FLAGS += -DDISTRIBUTOR_LOGO="/usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg" CONFIGURE_FLAGS += -DDARK_MODE_DISTRIBUTOR_LOGO="/usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg" endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DENABLE_LIBDEVICEINFO=ON \ -DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \ -DLOMIRI_KEYBOARD_PLUGIN_PATH="/usr/lib/$(DEB_HOST_MULTIARCH)/lomiri-keyboard/plugins" \ -DMODERN_PYTHON_DBUSMOCK=ON \ $(CONFIGURE_FLAGS) override_dh_install: # cd tests/autopilot; \ # set -ex; for python in $(shell py3versions -r); do \ # $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ # done; \ # cd $(CURDIR) dh_install -X'*.pyc' override_dh_makeshlibs: dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/lomiri-system-settings # Debian's logo is in base-files, while Ubuntu's is in base-files override_dh_gencontrol: ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) dh_gencontrol -- \ -Vlogo:Depends='base-files (>= 13ubuntu10)' else dh_gencontrol -- \ -Vlogo:Depends='desktop-base' endif get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=..