File: rules

package info (click to toggle)
talksoup.app 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,452 kB
  • sloc: objc: 19,211; makefile: 39; perl: 16
file content (55 lines) | stat: -rwxr-xr-x 2,388 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/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/talksoup.app
bundles  := $(GNUSTEP_SYSTEM_APPS)/TalkSoup.app/Resources
usrshare := /usr/share/GNUstep/TalkSoup.app
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined \
				    -Wl,-rpath,/usr/lib/talksoup.app

%:
	dh $@

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

override_dh_auto_install:
# Cheat gnustep-make not to install the library in /usr/lib.
	dh_auto_install -- DESTDIR=$(d_app) \
	  GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/talksoup.app

override_dh_link:
	gsdh_gnustep
	dh_installdirs $(usrshare)
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
# Move all images to /usr/share in compliance with the FHS.  Avoid
# moving the app's Resources dir (as usually done for GNUstep
# packages), because all the app's bundles are installed there and
# most of them have arch-dep files.
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/TalkSoup.app/Resources/*.tiff \
	  $(d_app)$(usrshare) && dh_link $(usrshare)/TalkSoup.tiff \
	  $(GNUSTEP_SYSTEM_APPS)/TalkSoup.app/Resources/TalkSoup.tiff
	for i in $(d_app)$(bundles)/InFilters/Emoticon.bundle/Resources/*.tiff; do \
	  mv $$i $(d_app)$(usrshare) && dh_link $(usrshare)/$${i##*/} \
	  $(bundles)/InFilters/Emoticon.bundle/Resources/$${i##*/}; \
	done
	for i in $(d_app)$(bundles)/Output/GNUstepOutput.bundle/Resources/*.tiff; do \
	  mv $$i $(d_app)$(usrshare) && dh_link $(usrshare)/$${i##*/} \
	  $(bundles)/Output/GNUstepOutput.bundle/Resources/$${i##*/}; \
	done
	mv $(d_app)$(bundles)/InFilters/DCCSupport.bundle/Resources/*.tiff \
	  $(d_app)$(usrshare) && dh_link $(usrshare)/dccsupport_prefs.tiff \
	  $(bundles)/InFilters/DCCSupport.bundle/Resources/dccsupport_prefs.tiff
	mv $(d_app)$(bundles)/InFilters/Highlighting.bundle/Resources/*.tiff \
	  $(d_app)$(usrshare) && dh_link $(usrshare)/highlighting_prefs.tiff \
	  $(bundles)/InFilters/Highlighting.bundle/Resources/highlighting_prefs.tiff
# Create a PNG icon for the .desktop file (AppStream does not support TIFF).
	convert Source/Images/TalkSoup.tiff $(d_app)$(usrshare)/TalkSoup.png

override_dh_makeshlibs:
# The library is installed in /usr/lib/talksoup.app; no need for ldconfig.
	dh_makeshlibs -n