File: rules

package info (click to toggle)
filezilla 3.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 30,488 kB
  • sloc: cpp: 94,574; ansic: 51,082; sh: 4,451; makefile: 1,966; xml: 375
file content (49 lines) | stat: -rwxr-xr-x 1,370 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_autoreconf:
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	patch -p1 < debian/patches/11_use-decimal-si-by-default.patch
	touch debian/applied
endif
	dh_autoreconf

override_dh_auto_clean:
	dh_auto_clean
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	@if [ -e ./debian/applied ]; then \
		patch -R -p1 < debian/patches/11_use-decimal-si-by-default.patch ; \
		rm ./debian/applied ; \
	fi
endif

override_dh_dwz:
	: Skipping dwz, compression not beneficial on filezilla binary

override_dh_auto_configure:
	dh_auto_configure -- --disable-autoupdatecheck --with-dbus

override_dh_auto_install:
	# Create .xpm from .png and install it
	mkdir -p $(CURDIR)/debian/filezilla/usr/share/pixmaps
	convert $(CURDIR)/src/interface/resources/32x32/filezilla.png \
                $(CURDIR)/debian/filezilla/usr/share/pixmaps/filezilla.xpm
	dh_auto_install
	# Remove .la files
	find debian/tmp -name "*.la" -delete

override_dh_installchangelogs:
	# Install upstream NEWS file as changelog
	dh_installchangelogs -k NEWS

override_dh_link:
	# Remove doc from filezilla binary package,
	# a symlink to filezilla-common is created by dh_link
	rm -rf debian/filezilla/usr/share/doc/
	dh_link