File: rules

package info (click to toggle)
mirrormagic 3.0.0%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,792 kB
  • sloc: ansic: 143,653; perl: 1,900; makefile: 519; sh: 6
file content (37 lines) | stat: -rwxr-xr-x 1,112 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
37
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_CFLAGS_MAINT_APPEND = -fcommon

# main packaging script based on dh7 syntax
%:
	dh $@ 

# src/Makefile sets PROGBASE=rocksndiamonds, yet builds with the mirrormagic skin!
override_dh_auto_build:
	dh_auto_build -- PROGBASE=mirrormagic \
			RO_GAME_DIR=/usr/share/games/mirrormagic \
			RW_GAME_DIR=/var/games/mirrormagic \
			EXTRA_CFLAGS="$(CFLAGS)" \
			EXTRA_LDFLAGS="$(LDFLAGS)"

override_dh_fixperms-arch:
	dh_fixperms
# dh_fixperms ought to recognise games and set permissions accordingly,
# but it doesn't.
	chown root:games debian/mirrormagic/usr/games/mirrormagic
	chmod g+s debian/mirrormagic/usr/games/mirrormagic
	chown -R root:games debian/mirrormagic/var/games/mirrormagic
# need group write permission to record high scores in /var/games/mirrormagic
	chmod -R g+rws debian/mirrormagic/var/games/mirrormagic