File: rules

package info (click to toggle)
freedoom 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 48,712 kB
  • sloc: python: 3,513; makefile: 529; xml: 188; sh: 73
file content (43 lines) | stat: -rwxr-xr-x 950 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
#!/usr/bin/make -f

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

# upstream makefile invokes 'deutex' which lives in
# /usr/games
PATH := /usr/games:$(PATH)
export PATH

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- \
		ADOCOPTS="" \
		ASCIIDOC="asciidoctor" \
		ASCIIDOC_MAN="asciidoctor -b manpage" \
		VERSION=$(DEB_VERSION)

override_dh_auto_install:
	$(MAKE) install-freedm -- \
		DESTDIR=$(CURDIR)/debian/freedm \
		prefix=/usr \
		bindir=/games \
		ADOCOPTS="" \
		ASCIIDOC="asciidoctor" \
		ASCIIDOC_MAN="asciidoctor -b manpage" \
		VERSION=$(DEB_VERSION)
	
	$(MAKE) install-freedoom -- \
		DESTDIR=$(CURDIR)/debian/freedoom \
		prefix=/usr \
		bindir=/games \
		ADOCOPTS="" \
		ASCIIDOC="asciidoctor" \
		ASCIIDOC_MAN="asciidoctor -b manpage" \
		VERSION=$(DEB_VERSION)
	
	# fix privacy-breach-generic
	sed -e '/googleapis.com/d' -i debian/*/usr/share/doc/*/*.html
	
	# we have debian/copyright for this
	find debian/ -name 'COPYING' -delete