File: rules

package info (click to toggle)
polymaps 2.5.1%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 312 kB
  • ctags: 556
  • sloc: makefile: 57
file content (28 lines) | stat: -rwxr-xr-x 622 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ifndef UPVER
UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d+ -f1 | cut -d- -f1)
endif

%:
	dh $@

get-orig-source:
	uscan --verbose \
		--download-version $(UPVER) \
		--force-download \
		--rename \
		--destdir .

	tar xf polymaps_$(UPVER).orig.tar.gz
	@rm -rf \
		simplegeo-polymaps-*/lib/ \
		simplegeo-polymaps-*/examples/

	tar cf polymaps_$(UPVER)+ds1.orig.tar simplegeo-polymaps-*/
	gzip -9 polymaps_$(UPVER)+ds1.orig.tar
	rm -rf simplegeo-polymaps-*/ polymaps_$(UPVER).orig.tar.gz