File: rules

package info (click to toggle)
dd2 0.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,444 kB
  • sloc: ansic: 3,650; sh: 371; makefile: 36
file content (26 lines) | stat: -rwxr-xr-x 846 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-alternate-fire-key \
		--bindir=\$${prefix}/games \
		--datadir=\$${prefix}/share/games

override_dh_install:
	dh_install
	mv $(CURDIR)/debian/dodgindiamond2/usr/games/dd2 \
		$(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
	find $(CURDIR)/debian/dodgindiamond2/ -name "COPYING" -delete
	rm -f $(CURDIR)/debian/dodgindiamond2/usr/share/games/dodgindiamond2/dd2-hiscore
	rm -rf $(CURDIR)/debian/dodgindiamond2/usr/share/games/doc

override_dh_fixperms:
	dh_fixperms
	chmod 2755 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
	chgrp games $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
	chgrp games $(CURDIR)/debian/dodgindiamond2/var/games/dodgindiamond2