~ubuntu-desktop/nautilus/ubuntu

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
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f

-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

ifeq ($(DEB_HOST_ARCH_OS),linux)
ENABLE_SELINUX := -Denable-selinux=true
else
ENABLE_SELINUX := -Denable-selinux=false
endif

%:
	dh $@ --with gir,gnome

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		-Denable-packagekit=true \
		-Denable-desktop=true \
		-Denable-exif=true \
		-Denable-gtk-doc=true \
		-Denable-packagekit=true \
		-Denable-nst-extension=true \
		-Denable-unity=true \
		-Denable-xmp=true \
		$(ENABLE_SELINUX) \
		$(ENABLE_TRACKER)

override_dh_strip:
	dh_strip --dbgsym-migration='nautilus-dbg (<< 1:3.20.0-1~)'

override_dh_auto_test:
# We (will eventually) run autopkgtest instead

override_dh_install:
	dh_install --list-missing

	/usr/bin/pkg-gnome-compat-desktop-file \
		debian/nautilus/usr/share/applications/org.gnome.Nautilus.desktop \
		debian/nautilus/usr/share/applications/nautilus.desktop
	sed -i 's/NoDisplay=true/OnlyShowIn=Unity;GNOME;/' \
		debian/nautilus/usr/share/applications/org.gnome.Nautilus.desktop
	sed -i 's/\[Desktop Entry\]/\0\nNotShowIn=Unity;GNOME;/' \
		debian/nautilus/usr/share/applications/nautilus.desktop

override_dh_translations:
	ninja -C obj-$(DEB_HOST_GNU_TYPE) nautilus-pot
	dh_translations