File: rules

package info (click to toggle)
textedit.app 5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,340 kB
  • sloc: objc: 2,870; makefile: 18
file content (29 lines) | stat: -rwxr-xr-x 1,021 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed
d_app := $(CURDIR)/debian/textedit.app

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) messages=yes \
	  $(shell dpkg-buildflags --export=cmdline)
# Extract a .png icon for the .desktop file (GNUstep GUI will load the
# .icns directly).  The file is actually of larger size because there
# are no 48x48 and 64x64 icons, but at least GNOME/MATE will scale and
# display it properly.
	icns2png --extract --size 48 accessories-text-editor.icns

override_dh_link:
	dh_gnustep
	dh_installdirs usr/share/GNUstep
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/TextEdit.app/Resources \
	  $(d_app)/usr/share/GNUstep/TextEdit.app
	dh_link /usr/share/GNUstep/TextEdit.app \
	  $(GNUSTEP_SYSTEM_APPS)/TextEdit.app/Resources