File: rules

package info (click to toggle)
corsix-th 0.62-2
  • links: PTS, VCS
  • area: contrib
  • in suites: buster
  • size: 16,012 kB
  • sloc: cpp: 19,118; java: 8,419; ansic: 3,531; objc: 248; python: 210; lex: 82; yacc: 44; makefile: 26; xml: 26; sh: 14
file content (36 lines) | stat: -rwxr-xr-x 1,075 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
35
36
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_BINDIR=/usr/games/ -DCMAKE_INSTALL_DATADIR=/usr/share/games/

override_dh_auto_install:
	dh_auto_install
	rm -v debian/tmp/usr/share/games/corsix-th/LICENSE.txt

	for size in $$(identify ico:CorsixTH/CorsixTH.ico | awk '{print $$3}'); \
	do \
		mkdir -vp debian/corsix-th/usr/share/icons/hicolor/$$size/apps/ ; \
	done
	convert -verbose ico:CorsixTH/CorsixTH.ico -set filename:size %wx%h \
		debian/corsix-th/usr/share/icons/hicolor/%[filename:size]/apps/corsix-th.png ; \

	mkdir -vp debian/corsix-th/usr/share/icons/hicolor/scalable/apps/
	install -vm0644 CorsixTH/Original_Logo.svg debian/corsix-th/usr/share/icons/hicolor/scalable/apps/corsix-th.svg

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	busted -C CorsixTH/Luatest --verbose
endif

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
build: debian/corsix-th.6
endif

%.6: %.6.md
	pandoc --verbose --standalone $< --to man --output $@