File: rules

package info (click to toggle)
gyp 0.1%2B20180428git4d467626-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,040 kB
  • sloc: python: 29,378; ansic: 1,087; cpp: 855; sh: 302; lisp: 258; objc: 234; asm: 33; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 599 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
#!/usr/bin/make -f

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

upstreamHash := $(shell echo $(DEB_VERSION_UPSTREAM) | grep -oP '(?<=git)\w+')
upstreamUrl := $(shell grep -oP "(?<=Homepage: )(.+)" $(CURDIR)/debian/control)

get-orig-source:
	wget -O - $(upstreamUrl)+archive/$(upstreamHash).tar.gz > ../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz

%:
	dh $@ --with python2

override_dh_auto_build:
	dh_auto_build
	a2x -L --doctype manpage --format manpage $(CURDIR)/debian/gyp.txt > $(CURDIR)/debian/gyp.1

override_dh_auto_clean:
	-dh_auto_clean
	rm -rf build pylib/gyp.egg-info
	rm -f debian/gyp.1