File: rules

package info (click to toggle)
gnome-packagekit 43.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,460 kB
  • sloc: ansic: 8,554; xml: 129; python: 89; sh: 74; makefile: 24
file content (37 lines) | stat: -rwxr-xr-x 1,019 bytes parent folder | download | duplicates (2)
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 DH_VERBOSE=1

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifeq ($(DEB_HOST_ARCH_OS), linux)
	GPK_CONFIGURE_FLAGS = -Dsystemd=true
else
	GPK_CONFIGURE_FLAGS = -Dsystemd=false
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(GPK_CONFIGURE_FLAGS)

override_dh_install:
	# we don't ship the gpk-prefs .desktop file, since this tool can be accessed through the main application
	# and we might want to have users use software-properties instead if it is available.
	rm debian/tmp/usr/share/applications/gpk-prefs.desktop

	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	xvfb-run dh_auto_test
endif

override_dh_installdocs:
	dh_installdocs
	mkdir -p debian/gnome-packagekit/usr/share/doc/gnome-packagekit
	appstreamcli metainfo-to-news $(CURDIR)/*/data/metainfo/org.gnome.Packages.metainfo.xml \
		$(CURDIR)/debian/gnome-packagekit/usr/share/doc/gnome-packagekit/NEWS