| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
include /usr/share/dpkg/architecture.mk |
| 6 |
|
| 7 |
ifeq (linux,$(DEB_HOST_ARCH_OS)) |
| 8 |
EXTRA_MESON_ARGS += \ |
| 9 |
-Dsystemdsystemunitdir=/usr/lib/systemd/system \ |
| 10 |
-Dudevrulesdir=/usr/lib/udev/rules.d \ |
| 11 |
-Dudevhwdbdir=/usr/lib/udev/hwdb.d |
| 12 |
else |
| 13 |
EXTRA_MESON_ARGS += -Dsystemdsystemunitdir=no |
| 14 |
endif |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ |
| 18 |
|
| 19 |
override_dh_auto_configure: |
| 20 |
dh_auto_configure -- \ |
| 21 |
-Dman=true \ |
| 22 |
-Dgtk-doc=true \ |
| 23 |
-Dintrospection=enabled \ |
| 24 |
-Dpolkit=enabled \ |
| 25 |
$(EXTRA_MESON_ARGS) |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
# test suite needs system D-Bus and thus does not work on buildds |
| 29 |
|
| 30 |
override_dh_makeshlibs: |
| 31 |
dh_makeshlibs -- -c4 |
| 32 |
|
| 33 |
override_dh_installsystemd: |
| 34 |
dh_installsystemd --no-enable |
| 35 |
|
| 36 |
override_dh_fixperms: |
| 37 |
dh_fixperms -Xusr/libexec/upower/tests |