File: rules

package info (click to toggle)
boulder-game 1.02%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,708 kB
  • sloc: ansic: 32,633; cpp: 13,838; makefile: 108
file content (33 lines) | stat: -rwxr-xr-x 1,246 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
#!/usr/bin/make -f

export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --sourcedirectory=build/linux

override_dh_auto_install:
	mkdir -p debian/tmp/usr/share/boulder-game
	cp exe/data/* debian/tmp/usr/share/boulder-game/
	# Fix permissions
	find debian/tmp/usr/share/boulder-game/ -type f -exec chmod 644 \{\} \+
	mkdir -p debian/tmp/usr/games/
	cp build/linux/boulder debian/tmp/usr/games/boulder-game
	cp build/linux/mapeditor debian/tmp/usr/games/boulder-mapeditor
	#
	mkdir -p debian/tmp/usr/share/applications/
	cp debian/boulder-game.desktop debian/tmp/usr/share/applications/
	cp debian/boulder-mapeditor.desktop debian/tmp/usr/share/applications/
	mkdir -p debian/tmp/usr/share/icons/hicolor/48x48/apps/
	cp debian/boulder-game.png debian/tmp/usr/share/icons/hicolor/48x48/apps/
	cp debian/boulder-mapeditor.png debian/tmp/usr/share/icons/hicolor/48x48/apps/
	gzip -k debian/boulder-game.6
	gzip -k debian/boulder-mapeditor.6
	mkdir -p debian/tmp/usr/share/man/man6
	cp debian/boulder-game.6.gz debian/tmp/usr/share/man/man6
	cp debian/boulder-mapeditor.6.gz debian/tmp/usr/share/man/man6

override_dh_auto_clean:
	dh_auto_clean
	rm -Rf debian/boulder-game.6.gz
	rm -Rf debian/boulder-mapeditor.6.gz