File: rules

package info (click to toggle)
pidgin-skype 20240122%2Bgitab786a3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 616 kB
  • sloc: ansic: 7,771; makefile: 132
file content (34 lines) | stat: -rwxr-xr-x 783 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
31
32
33
34
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PLUGIN_VERSION = $(DEB_VERSION)

SVGS = debian/svgs
ICONS = debian/icons

%:
	dh $@

override_dh_auto_build:
	$(MAKE) -C skypeweb all

override_dh_auto_install:
	for i in 16 22 48; do \
		[ $$i -eq 16 ] && SVG=$(SVGS)/skype16.svg || SVG=$(SVGS)/skype.svg; \
		SVGOUT=$(SVGS)/skypeout.svg; \
		mkdir -p $(ICONS)/$${i}; \
		rsvg-convert -w $${i} -h $${i} $${SVG} \
			-o $(ICONS)/$${i}/skype.png; \
		rsvg-convert -w $${i} -h $${i} $${SVGOUT} \
			-o $(ICONS)/$${i}/skypeout.png; \
	done

override_dh_auto_clean:
	$(MAKE) -C skypeweb clean
	-rm -rf $(ICONS)
	dh_auto_clean

override_dh_strip:
	dh_strip --dbgsym-migration='pidgin-skype-dbg(<< 20230710+git5daf79d+dfsg-1~)'