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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
ifeq (linux,$(DEB_HOST_ARCH_OS))
EXTRA_MESON_ARGS += \
-Dsystemdsystemunitdir=/usr/lib/systemd/system \
-Dudevrulesdir=/usr/lib/udev/rules.d \
-Dudevhwdbdir=/usr/lib/udev/hwdb.d
else
EXTRA_MESON_ARGS += -Dsystemdsystemunitdir=no
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-Dman=true \
-Dgtk-doc=true \
-Dintrospection=enabled \
-Dpolkit=enabled \
$(EXTRA_MESON_ARGS)
override_dh_auto_test:
# test suite needs system D-Bus and thus does not work on buildds
override_dh_makeshlibs:
dh_makeshlibs -- -c4
override_dh_installsystemd:
dh_installsystemd --no-enable
override_dh_fixperms:
dh_fixperms -Xusr/libexec/upower/tests
|