File: rules

package info (click to toggle)
gnome-breakout 0.5.3-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,480 kB
  • sloc: ansic: 3,834; sh: 2,802; makefile: 136; xml: 53
file content (36 lines) | stat: -rwxr-xr-x 992 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf debian/autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
	--prefix=/usr \
	--bindir=\$${prefix}/games \
	--datadir=\$${prefix}/share/games

override_dh_auto_clean:
	rm -f po/*.gmo
	dh_auto_clean

override_dh_auto_install:
	dh_auto_install

	# don't include this file in the package, postinst will take care of it
	rm -rf debian/gnome-breakout/var

	# install puts desktop file in incorect location
	mv debian/gnome-breakout/usr/share/games/gnome/apps/Games/gnome-breakout.desktop \
		debian/gnome-breakout/usr/share/applications
	rm -rf debian/gnome-breakout/usr/share/games/gnome

	# install puts gnome-breakout.png in incorrect location
	mv debian/gnome-breakout/usr/share/games/pixmaps/gnome-breakout.png \
		debian/gnome-breakout/usr/share/pixmaps/
	rm -rf debian/gnome-breakout/usr/share/games/pixmaps