File: rules

package info (click to toggle)
tenmado 0.10-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,208 kB
  • sloc: ansic: 22,906; sh: 1,072; yacc: 321; makefile: 300; lex: 170
file content (31 lines) | stat: -rwxr-xr-x 764 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--bindir=/usr/games \
		--localstatedir=/var \
		--mandir=/usr/share/man

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tenmado/
	# the high score directory is handled by the maintainer scripts,
	# so don't put it in .deb
	rmdir $(CURDIR)/debian/tenmado/var/games/tenmado/
	rmdir $(CURDIR)/debian/tenmado/var/games/
	rmdir $(CURDIR)/debian/tenmado/var/

override_dh_install:
	# debian menu and desktop icon
	cp icon.xpm debian/tenmado.xpm
	cp icon.png debian/tenmado.png
	dh_install

override_dh_fixperms:
	dh_fixperms
	chown root:games $(CURDIR)/debian/tenmado/usr/games/tenmado
	chmod 2755 $(CURDIR)/debian/tenmado/usr/games/tenmado