File: rules

package info (click to toggle)
numix-gtk-theme 2.6.7-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,920 kB
  • sloc: xml: 3,047; sh: 103; makefile: 67
file content (29 lines) | stat: -rwxr-xr-x 964 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

%:
	dh $@

# Choosing a default icon theme is required for Numix to show up in
# MATE's theme picker (mate-appearance-properties)
# But Ubuntu Developers don't want to install numix-icon-theme by default.
# For instance, Xubuntu wants to include numix-gtk-theme by default, but
# not be forced to install the theme.
override_dh_auto_install:
	dh_auto_install
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
	sed -i s/IconTheme=Numix/IconTheme=Adwaita/ \
		debian/numix-gtk-theme/usr/share/themes/Numix/index.theme
endif

# https://github.com/numixproject/numix-gtk-theme/pull/690
override_dh_fixperms:
	dh_fixperms
	find debian/numix-gtk-theme -type f -exec chmod -x {} \;

override_dh_gencontrol:
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
	dh_gencontrol -- -Vicon-theme:Depends='adwaita-icon-theme'
else
	dh_gencontrol -- -Vicon-theme:Depends='numix-icon-theme'
	dh_gencontrol -- -Vmurrine:Breaks='murrine-themes (<= 0.98.11)'
endif