File: rules

package info (click to toggle)
fortunate.app 3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 516 kB
  • sloc: ansic: 2,697; objc: 470; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 721 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
d_app := $(CURDIR)/debian/fortunate.app
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) $(verbose) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_link:
	mv $(d_app)/usr/bin/Fortunate $(d_app)/usr/games
	rmdir $(d_app)/usr/bin
	dh_installdirs usr/share/GNUstep
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/Fortunate.app/Resources \
	  $(d_app)/usr/share/GNUstep/Fortunate.app
	dh_link /usr/share/GNUstep/Fortunate.app \
	  $(GNUSTEP_SYSTEM_APPS)/Fortunate.app/Resources