File: rules

package info (click to toggle)
mirrormagic 3.3.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,212 kB
  • sloc: ansic: 160,997; java: 3,853; perl: 2,022; makefile: 608; sh: 245; xml: 4
file content (39 lines) | stat: -rwxr-xr-x 1,114 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
38
39
#!/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 $@ 

execute_after_dh_clean:
	rm -f mirrormagic

# src/Makefile sets PROGBASE=rocksndiamonds, yet builds with the mirrormagic skin!
override_dh_auto_build:
	dh_auto_build -- PROGBASE=mirrormagic \
			BASE_PATH=/usr/share/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