File: rules

package info (click to toggle)
gnome-initial-setup 3.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,680 kB
  • sloc: ansic: 174,368; sh: 4,800; makefile: 489; xml: 276; sed: 16
file content (30 lines) | stat: -rwxr-xr-x 926 bytes parent folder | download
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
#!/usr/bin/make -f

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

%:
	dh $@ --with gnome --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/lib/gnome-initial-setup \
		-Ddisable-software-sources=true \
		-Dwith-vendor-conf-file=/usr/lib/gnome-initial-setup/vendor.conf

# Skip language chooser on Ubuntu since it doesn't work there
override_dh_install:
	dh_install
ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
	dh_install debian/vendor.conf /usr/lib/gnome-initial-setup
endif

# Depend on the appropriate package for the Welcome logo
override_dh_gencontrol:
ifeq ($(shell dpkg-vendor --query vendor),Debian)
	dh_gencontrol -- -Vlogo:Depends='desktop-base'
else ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
	dh_gencontrol -- -Vlogo:Depends='gnome-control-center-data'
else
	dh_gencontrol
endif