File: rules

package info (click to toggle)
pidgin-skype 20140930%2Bsvn665%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 1,148 kB
  • ctags: 958
  • sloc: ansic: 5,856; cpp: 1,859; objc: 586; makefile: 124
file content (45 lines) | stat: -rwxr-xr-x 1,212 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
38
39
40
41
42
43
44
45
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

SVGS = debian/svgs
ICONS = debian/icons
DESTDIR = $(CURDIR)/debian/tmp

%:
	dh $@

override_dh_auto_build:
	$(MAKE) 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:
	-rm -rf $(ICONS)
	dh_auto_clean

override_dh_strip:
	dh_strip --dbg-package=pidgin-skype-dbg

override_dh_builddeb:
	dh_builddeb -- -Zxz

TMPDIR=tmp-pidgin-skype
get-orig-source:
	@echo date=$(date) svnrev=$(svnrev)
	@if [ "$(date)" = "" ] || [ "$(svnrev)" = "" ];then echo \
		"Usage: debian/rules date=YYYYMMDD svnrev=nnnn get-orig-source";exit 1;fi
	svn export -r $(svnrev) http://skype4pidgin.googlecode.com/svn/trunk/ $(TMPDIR)
	find $(TMPDIR) -type f -name '*.png' -print -delete
	cd $(TMPDIR) && tar --exclude-vcs -Jcf ../../pidgin-skype_$(date)+svn$(svnrev)+dfsg.orig.tar.xz *
	rm -rf $(TMPDIR)