| 1 |
#!/usr/bin/make -f
|
| 2 |
|
| 3 |
include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
|
| 4 |
|
| 5 |
# Ensure at build time that the library has no dependencies on undefined
|
| 6 |
# symbols, and speed up loading.
|
| 7 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
|
| 8 |
|
| 9 |
%:
|
| 10 |
dh $@ --with gir,gnome --buildsystem=meson
|
| 11 |
|
| 12 |
ifeq ($(DEB_HOST_ARCH_OS),linux)
|
| 13 |
CONFFLAGS = \
|
| 14 |
-Denable-networkmanager=yes \
|
| 15 |
-Denable-systemd=yes
|
| 16 |
endif
|
| 17 |
|
| 18 |
override_dh_auto_configure:
|
| 19 |
dh_auto_configure -- \
|
| 20 |
--libdir=/usr/lib \
|
| 21 |
--libexecdir=/usr/lib/gnome-shell \
|
| 22 |
$(CONFFLAGS)
|
| 23 |
|
| 24 |
override_dh_install:
|
| 25 |
find debian/tmp -name '*.la' -delete
|
| 26 |
dh_install
|
| 27 |
|
| 28 |
override_dh_missing:
|
| 29 |
dh_missing --fail-missing
|
| 30 |
|
| 31 |
override_dh_makeshlibs:
|
| 32 |
dh_makeshlibs -X/usr/lib/gnome-shell/
|
| 33 |
|
| 34 |
override_dh_shlibdeps:
|
| 35 |
# gnome-shell uses mutters private mutter-clutter-1.0.so etc.
|
| 36 |
dh_shlibdeps -l"usr/lib/$(DEB_HOST_MULTIARCH)/mutter"
|
| 37 |
|
| 38 |
override_dh_strip:
|
| 39 |
dh_strip --dbgsym-migration='gnome-shell-dbg (<< 3.20.2-2~)'
|
| 40 |
|
| 41 |
override_dh_translations:
|
| 42 |
ninja -C obj-$(DEB_HOST_GNU_TYPE) gnome-shell-pot
|
| 43 |
dh_translations
|
| 44 |
|
| 45 |
override_dh_auto_test:
|
| 46 |
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
|
| 47 |
ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
|
| 48 |
xvfb-run dh_auto_test
|
| 49 |
else
|
| 50 |
-xvfb-run dh_auto_test
|
| 51 |
endif
|
| 52 |
endif
|