File: rules

package info (click to toggle)
im-config 0.57-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,000 kB
  • sloc: sh: 365; makefile: 86
file content (30 lines) | stat: -rwxr-xr-x 685 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
#!/usr/bin/make -f

DH_FLAGS =

# Ubuntu language pack support (dh_translations)
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
	DH_FLAGS += --with translations
endif

%:
	dh $@ $(DH_FLAGS)

override_dh_auto_build:
	dh_auto_build
	# Adjust default/im-config
	if dpkg-vendor --is ubuntu; then \
		cp default/im-config-Ubuntu default/im-config ; \
	else \
		cp default/im-config-Debian default/im-config ; \
	fi

override_dh_install:
	dh_install
	# Adjust Desktop menu for Ubuntu.
	if dpkg-vendor --is ubuntu; then \
		echo "OnlyShowIn=KDE;LXQt;" >> debian/im-config/usr/share/applications/im-config.desktop ;\
	fi

override_dh_translations:
	dh_translations --domain=im-config