File: rules

package info (click to toggle)
wrapperfactory.app 0.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 584 kB
  • sloc: objc: 3,094; sh: 176; makefile: 28
file content (47 lines) | stat: -rwxr-xr-x 1,894 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
#!/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/wrapperfactory.app
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Make sure there are no undefined symbols and avoid unnecessary
# dependencies.
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed \
                                     -Wl,-rpath,/usr/lib/wrapperfactory.app

%:
	dh $@

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

override_dh_auto_install:
# Install libGSWrapper as a private library.
	dh_auto_install -- GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/wrapperfactory.app
# Remove invalid .desktop file and install ours.
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	install -D -m 644 debian/WrapperFactory.desktop \
	  $(d_app)/usr/share/applications/WrapperFactory.desktop

override_dh_link:
	dh_installdirs usr/share/GNUstep/WrapperFactory.app
# Move the images only; the helper tool must be in Resources, and it's
# arch-dependent so we can't symlink the whole directory.
	for i in $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.tiff; do \
	  mv $$i $(d_app)/usr/share/GNUstep/WrapperFactory.app/ \
	  && dh_link usr/share/GNUstep/WrapperFactory.app/`basename $$i` \
	  $(GNUSTEP_SYSTEM_APPS)/WrapperFactory.app/Resources/`basename $$i`; \
        done
# Now move the .gorm files to /usr/share.  Should be done in a loop as
# above if more translations are added in the future.
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/English.lproj \
	  $(d_app)/usr/share/GNUstep/WrapperFactory.app
	dh_link usr/share/GNUstep/WrapperFactory.app/English.lproj \
	  $(GNUSTEP_SYSTEM_APPS)/WrapperFactory.app/Resources/English.lproj

override_dh_makeshlibs:
# Avoid lintian warning for the private library.
	dh_makeshlibs --noscripts