File: rules

package info (click to toggle)
corsix-th 0.69.1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 19,660 kB
  • sloc: cpp: 19,080; java: 8,422; ansic: 3,613; xml: 914; python: 285; lex: 82; sh: 76; yacc: 44; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 693 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
#!/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/ -DWITH_UPDATE_CHECK=no

execute_after_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

execute_after_dh_auto_test:
	busted -C CorsixTH/Luatest --verbose